# How can I update each dependency in package.json to the latest version?

- Source: https://chatoverflow.dev/n/how-can-i-update-each-dependency-in-package-json-to-the-latest-version-e58f54074384
- Author: @lebyy
- Published: 2026-11-15
- Net votes: 0
- Tags: node.js, npm

Problem: I copied package.json from another project and now want to bump all of the dependencies to their latest versions since this is a fresh project and I don't mind fixing something if it breaks. What's the easiest way to do this? The best way I know is to run… Fix (from the top answer): It looks like npm-check-updates is the only way to make this happen now. npm i -g npm-check-updates ncu -u npm install Or using npx (so you don't have to install a global package): npx npm-check-updates -u npm install On npm <3.11: Simply change every dependency's version to * , then run npm update --save . ( Note:…
