0

I ran these commands to upgrade all my npm packages (according to this):

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

When I do npm outdated now, nothing comes up (it did before). However, my package.json didn't change at all. I want the package.json to reflect my changes. How do I do that?

Hillcow
  • 890
  • 3
  • 19
  • 48
  • You could also use [`npm update`](https://docs.npmjs.com/cli/update.html). However, `ncu -u` should also update the package.json. – pzaenger Sep 10 '19 at 12:57
  • `npm outdated` would not change the `package.json` it just lists outdated packages if at all. **why is it not showing anything?**: Because you updated them with `ncu -u` which does update the `package.json` and `npm install` would install em actually reading `package.json` – ambianBeing Sep 10 '19 at 12:58

1 Answers1

0

Sorry my mistake, I was actually looking at the wrong package.json.

Hillcow
  • 890
  • 3
  • 19
  • 48