node.js - npm install with --save does not save in package.json -


i have npm-5.3.0 installed on arch linux.

i create new project npm init , fill in details. creates package.json file details.

after when npm install <package> --save, file package.json not change, , there no entry dependencies in file. had installed package globally if matters.

check update available npm -g npm-check-updates npm-check-updates -u npm install

you have change

"dependencies": { "express": "", "mongodb": "", "underscore": "", "rjs": "", "jade": "", "async": "" }

then run npm update --save


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -