Skip to content

How to update each dependency in package.json to the latest version

You have 2 options:

Option 1 – Recommended (Using npx)

npx npm-check-updates -u npm install
Code language: Bash (bash)

Option 2 – Older way (Using npm globally)

npm i -g npm-check-updates ncu -u npm install
Code language: Bash (bash)

See also  How to get the Alphabet as Array in Javascript
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x