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