• 0

npm WARN Invalid name:


Have you received below error while doing npm install? npm install npm notice created a lockfile as package-lock.json. You should commit this file. npm WARN Invalid name: Foo Bar

Solution:

  • In your package.json, "name" should be all small characters, without any special characters.
Read "name" for all the naming conventions.