node.js - How to add dependency to package.json later -


in application have installed few node modules using below command

 npm install <modulename> 

i forgot mention "--save" save dependency list package.json file.

now update dependencies in package.json file without updating file manually . idea how can done ?

you can run same command again, specifying --save flag , automatically included in package.json. problem version of package can updated newer version, may specify specific version of app: npm --save app@1.0.1.

alternatively can modify package.json include dependency:

"dependencies": {     "module: "*" }  

Comments

Popular posts from this blog

javascript - Is getTimezoneOffset() stable during daylight saving transition? -

Why does PHP consider 0 to be equal to a string? -

formula - R: how to pass in a reference to the variable in glm or lm? -