On May 21, 02014, at 14:43, Stefano Cudini <[email protected]> wrote:

> I upgraded nodejs on my system to a new version.
> 
> I had already installed many npm packages installed globally with the 
> previous version, inside: /opt/node-v0.old/lib/node_modules 
> 
> The new version now say the package is located at: 
> /opt/node-v0.new/lib/node_modules
> 
> Is a better way to reinstall all packages with the new version of nodejs? 
> or I can simply move node_modules dir to the new path? 
> 
> what is the best behavior usually?

You can move it if it’s, say, 0.10.11 to 0.10.12 without problem. If it’s 
0.10.x to 0.11.x, the ABIs have changed and you’ll need to rebuild modules. If 
you have no modules written in C++, you’ll be fine.

I’d move it over then “npm rebuild -g” to rebuild any C++ modules.

Aria

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

Reply via email to