npm update to specific version (and shrinkwrap)

npm update doesn’t seem to interact with the shrinkwrap file as far as I can tell. But you can use npm install to set the version of a package.

This will update both package.json and npm-shrinkwrap.json:

npm install [email protected] --save

Leave a Comment