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

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

python - pip wont install .WHL files -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -