Il giorno mercoledì 21 maggio 2014 21:39:03 UTC+2, Aria Stewart ha scritto:

>
> On May 21, 02014, at 14:43, Stefano Cudini 
> <[email protected]<javascript:>> 
> 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
>

tnks!!  It's just what I needed


 

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/04469512-c9bf-470e-b5b5-514998c94073%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to