Curious what is the difference between the two procedures:
npm install xyz
package.json
, adding required module names like this:"dependencies": {
"express": "~3.4.4",
"mongodb": "*",
"body-parser": "*",
"bson": "*"
},
and then npm update
If you just do npm install package
, it doesn't add it to your package.json. Then, if you want to npm update
or publish your package, it won't have all of the required packages.
You can also do npm install --save package
, which will install and add to your package.json. (see the docs)
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments