npm - Should changes in a package.json file be commited to a repository as well? -


i not sure if correct commit , push changes in package.json file repository. far understood, others in git can install new dependencies executing command: npm install , accordingly, package.json updated too.or, files says new dependencies , needs pushed well. great if clarify me. :)

you need commit package.json. others, after updating code, need perform npm install latest dependencies required project.

whenever or else wants add new dependencies project perform npm install --save or npm install --save-dev. package.json automatically updated, , needs committed again.

note: dependencies should not committed, need add node_modules .gitignore file (supposing use git), , commit file also.


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -