Home > Mobile >  Error: Invalid name in Prisma of node.js project
Error: Invalid name in Prisma of node.js project

Time:07-30

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"
  • Related