Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update npm? #652

Closed
gsklee opened this issue Feb 10, 2015 · 2 comments
Closed

Update npm? #652

gsklee opened this issue Feb 10, 2015 · 2 comments

Comments

@gsklee
Copy link

gsklee commented Feb 10, 2015

I'm using nvm in combination with this guide. Turned out I can't update the npm that came preloaded with a given node/iojs version.

eg.

$ nvm install iojs
$ npm -v
> 2.4.1

$ npm install -g npm
> [email protected] /home/gsklee/.npm-packages/lib/node_modules/npm
$ npm ls --depth=0 -g
> /home/gsklee/.npm-packages/lib
> └── [email protected]
$npm -v
> 2.4.1

Is this a bug?

@ljharb
Copy link
Member

ljharb commented Feb 10, 2015

Do you have a prefix specified in ~/.npmrc? This conflicts with nvm - please remove that and reinstall node, and you'll find everything working.

Closing as a duplicate of #606

@ljharb ljharb closed this as completed Feb 10, 2015
@ljharb
Copy link
Member

ljharb commented Feb 10, 2015

More specifically, I'm not familiar with that guide - but npm packages should not be shared between node installations. In addition, global packages should not be requireable - so setting NODE_PATH also should not be necessary.

Please do not follow that guide.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants