I used Prisma in a node.js project when I ran the below command
npx prisma migrate dev
I faced with this error
Environment variables loaded from .env
Error: Invalid name: "project name"
I don't know what the problem is that printed Error: Invalid name
when I want to migrate?
CodePudding user response:
Based on npm Docs
The "name" field contains your package's name, and must be lowercase and one word, and may contain hyphens and underscores.
So I changed package.json's name in my project with
"name": "project-name"