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
Post a Comment