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

'n v0.6.5' does not seem to install npm #47

Closed
perfectapi opened this Issue Dec 13, 2011 · 7 comments

Comments

Projects
None yet
5 participants
@ghost

ghost commented Dec 13, 2011

The latest 0.6.5 includes the npm package manager. When I install it directly, npm works fine, however when I use 'n' to install 0.6.5, the npm command is not available.

@bstrie

This comment has been minimized.

Show comment
Hide comment
@bstrie

bstrie Dec 16, 2011

As far as I can tell, right now you have to use the command n npm 0.6.5, which is definitely a pain. It would be nice if n recognized if you were downloading a version of node that came bundled with npm and did its usual thing with linking to the executable for you.

bstrie commented Dec 16, 2011

As far as I can tell, right now you have to use the command n npm 0.6.5, which is definitely a pain. It would be nice if n recognized if you were downloading a version of node that came bundled with npm and did its usual thing with linking to the executable for you.

@tj

This comment has been minimized.

Show comment
Hide comment
@tj

tj Dec 22, 2011

Owner

to be honest i dont really want it to install npm, at least until 0.4.x dies away and all the releases install npm

Owner

tj commented Dec 22, 2011

to be honest i dont really want it to install npm, at least until 0.4.x dies away and all the releases install npm

@bstrie

This comment has been minimized.

Show comment
Hide comment
@bstrie

bstrie Dec 22, 2011

At the very least, it would be nice if omitting the version number allowed n to assume that you want to use the version of npm associated with your active copy of node. So, if my current version of node is 0.6.5, typing n npm install somepkg would expand to n npm 0.6.5 install somepkg.

bstrie commented Dec 22, 2011

At the very least, it would be nice if omitting the version number allowed n to assume that you want to use the version of npm associated with your active copy of node. So, if my current version of node is 0.6.5, typing n npm install somepkg would expand to n npm 0.6.5 install somepkg.

@c4milo c4milo referenced this issue Feb 24, 2012

Closed

Can't run npm #50

@jneen

This comment has been minimized.

Show comment
Hide comment
@jneen

jneen Mar 6, 2012

bump. As a workaround, I have this in my bashrc:

npm() {
  n npm `node --version` "$@"
}

jneen commented Mar 6, 2012

bump. As a workaround, I have this in my bashrc:

npm() {
  n npm `node --version` "$@"
}
@elsewares

This comment has been minimized.

Show comment
Hide comment
@elsewares

elsewares Mar 7, 2012

Also note that the aliases for stable and latest don't work either, although the version numbers do. Also, +jayferd for the workaround.

n npm stable install bigpackage # doesn't work
n npm 0.6.12 install bigpackage # works

elsewares commented Mar 7, 2012

Also note that the aliases for stable and latest don't work either, although the version numbers do. Also, +jayferd for the workaround.

n npm stable install bigpackage # doesn't work
n npm 0.6.12 install bigpackage # works
@jneen

This comment has been minimized.

Show comment
Hide comment
@jneen

jneen Mar 7, 2012

Actually, I came up with a better workaround, which is in my bashrc:

export PATH=$N_PREFIX/n/current/bin:"$PATH"

That'll also cover all the executables installed with npm install -g.

jneen commented Mar 7, 2012

Actually, I came up with a better workaround, which is in my bashrc:

export PATH=$N_PREFIX/n/current/bin:"$PATH"

That'll also cover all the executables installed with npm install -g.

@elsewares

This comment has been minimized.

Show comment
Hide comment
@elsewares

elsewares commented Mar 7, 2012

Grazi!

@tj tj closed this in 80c2e8f Mar 14, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment