How to update a node module with npm (npm update module?)
How to npm update module for node.js ?
(1) First step is to go to the folder node_module:
$> cd vendor/node_modules (modify for your own project)
(2) Run npm update <module>, let say the module is restify for example
$> npm update restify
To update to a specific version
For example restify 1.4.4 which is the latest of the 1.X series) :
$> npm install restify@1.4.4
Unrelated Note :
There is some doc on how to migrate your application when you update restify from 1.X to 2.X.. but it is incomplete. You also need to change req.contentType => req.contentType()
https://github.com/mcavage/node-restify/wiki/1.4-to-2.0-Migration-Tips
Done!
Recent Comments