2

I have a lot of packages as dependencies in package.json, but they all have * as versions.

I have read that this is unrecommended, so I want to add the latest versions to all of them. How can I do this? I have tried npm-check-updates, but it says that all packages are up-to-date.

Jamgreen
  • 10,329
  • 29
  • 113
  • 224
  • ```npm update --save --save-dev``` will install the latest package that maches the ```*``` semver, and will save this version with a caret in your ```package.json``` – dsdenes May 26 '17 at 10:49

1 Answers1

0
npm i -g npm-check-updates
npm-check-updates -u
npm install
marchaos
  • 3,316
  • 4
  • 26
  • 35