fix-nvm-update

fix-nvm-update

fix-nvm-update quickly move all global npm packages from old Node version to new (only for versions, installed via NVM), without reinstalling.

Usage

You need a node version >=6.0.0.
Install fix-nvm-update localy or global, and set your current version of Node:

$ fix-nvm-update set last v6.6.0

Check your nvm nodes directory (~/.nvm/versions/node by default):

$ fix-nvm-update get

If needed, change it:

$ fix-nvm-update set nodes /home/user/.nvm/versions/node

After installing new Node version just run fix-nvm-update with this new version:

$ nvm install v6.7.0

$ ../src/fix-nvm-update.js v6.7.0

It's not a problem if fix-nvm-update installed globaly and move itself with other global packages. In this case your need run fix-nvm-update from old Node version (because new version has not global packages yet):