I have a package.json file that lists all the dependencies I have with *'s, but I want the latest packages. I tried:
npm install --save
Older versions of npm will update package.json when you run npm update --save, but this appears to be broken in recent versions.
npm update --save
Alternatively, npm-check-updates can update your package.json.