Follow Me:

Monday 6 February 2017

Npm node js can't find package.json

The most important things in your package.json are the name and version fields. Those are actually required, and your package won't install without them. The name and version together form an identifier that is assumed to be completely unique. Changes to the package should come along with changes to the version.

npm --version
npm install express
npm init -y



More reference:

https://docs.npmjs.com/files/package.json
Categories:

12 comments:

  1. This comment has been removed by a blog administrator.

    ReplyDelete
  2. This comment has been removed by a blog administrator.

    ReplyDelete
  3. As I run "npm run watch" I am getting "missing script: watch" as error message. What script should I include in package.json file in npm ?

    ReplyDelete
  4. You literally saved a lot of time and headache! Thanks!

    ReplyDelete
  5. Oh yea thanks to you I added 50 packages !!! Woo hoo!

    ReplyDelete