How to update package.json dependencies

If you’ve ever installed npm packages and you got same version (not upgrade packages). So not worry just three lines of code will help to update.

This npm-check-updates is a utility that automatically adjusts a package.json with the latest version of …


This content originally appeared on DEV Community and was authored by anitaparmar26

If you've ever installed npm packages and you got same version (not upgrade packages). So not worry just three lines of code will help to update.

This npm-check-updates is a utility that automatically adjusts a package.json with the latest version of all dependencies.

$ npm i -g npm-check-updates
$ ncu -u
$ npm install.

1. $ npm i -g npm-check-updates
Update NPM Dependencies

2. $ ncu -u
Update NPM Dependencies

3. $ npm install.
Update NPM Dependencies

Thank you for reading.


This content originally appeared on DEV Community and was authored by anitaparmar26


Print Share Comment Cite Upload Translate Updates
APA

anitaparmar26 | Sciencx (2021-08-25T06:03:46+00:00) How to update package.json dependencies. Retrieved from https://www.scien.cx/2021/08/25/how-to-update-package-json-dependencies/

MLA
" » How to update package.json dependencies." anitaparmar26 | Sciencx - Wednesday August 25, 2021, https://www.scien.cx/2021/08/25/how-to-update-package-json-dependencies/
HARVARD
anitaparmar26 | Sciencx Wednesday August 25, 2021 » How to update package.json dependencies., viewed ,<https://www.scien.cx/2021/08/25/how-to-update-package-json-dependencies/>
VANCOUVER
anitaparmar26 | Sciencx - » How to update package.json dependencies. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/08/25/how-to-update-package-json-dependencies/
CHICAGO
" » How to update package.json dependencies." anitaparmar26 | Sciencx - Accessed . https://www.scien.cx/2021/08/25/how-to-update-package-json-dependencies/
IEEE
" » How to update package.json dependencies." anitaparmar26 | Sciencx [Online]. Available: https://www.scien.cx/2021/08/25/how-to-update-package-json-dependencies/. [Accessed: ]
rf:citation
» How to update package.json dependencies | anitaparmar26 | Sciencx | https://www.scien.cx/2021/08/25/how-to-update-package-json-dependencies/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.