"global" installs install into the node directory.  nvm doesn't upgrade
node in-place so each new version of node is a new version.  What you can
do it not install npm modules "global"ly.  If you must have them everywhere
(like command-line scripts)  install then in $HOME or something and put
$HOME/node_modules/.bin in your path.

On Tue, Mar 20, 2012 at 12:07 PM, Mark Hahn <[email protected]> wrote:

> I love nvm and npm.  However, whenever I switch to a new version of node
> with nvm I have to reinstall all my global npm modules.  Apparently the
> global modules are stored in the node directory which is created anew.
>
>  Is my setup normal?  Is there a way around this problem?
>
>  --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> 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 post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
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 post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to