Global npm module updater.
var updater = require('module-updater');
updater.update('your-module', function(err, result) {
// DO SOMETHING AFTER INSTALLING
});
Install or update module
to the latest version globally.
A callback is called after installing finished, the first argument of callback is error instance.
- Fix linked module version not correct issue.
- Link to local after install finished.
- Grant permissions to NODE_PATH before install.
- Use install command to replace update command.