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

NVM in npm is not the right one? #304

Open
deiga opened this issue Oct 10, 2013 · 11 comments
Open

NVM in npm is not the right one? #304

deiga opened this issue Oct 10, 2013 · 11 comments
Assignees
Milestone

Comments

@deiga
Copy link
Contributor

deiga commented Oct 10, 2013

There's an nvm package in npm but it looks to be totally different. Whats the story there?

@ljharb
Copy link
Member

ljharb commented Oct 10, 2013

Someone must have taken the name. This nvm is not meant to be installed via npm, since it's used to install node/npm itself.

@ljharb
Copy link
Member

ljharb commented May 4, 2014

@ljharb ljharb added this to the v1.0.0 milestone Oct 7, 2014
@ljharb ljharb self-assigned this Oct 15, 2014
@ljharb
Copy link
Member

ljharb commented Jan 14, 2015

tl;dr: I now have control over the package on npm, and as soon as nvm is at v1.0.0, I'll start publishing nvm.sh there.

However, it's kind of meaningless to install nvm from npm, since nvm is used to install npm in the first place, so it will only serve to prevent the current footgun that exists.

@danfinlay
Copy link

Oh great, thanks a ton for doing this!

I would also encourage a descriptive warning when nvm is installed incorrectly using npm, ideally an error that gives specific instructions on how to correctly install nvm from that state, to minimize the friction to a correct install.

@ljharb
Copy link
Member

ljharb commented Jun 1, 2015

My plan is to actually have npm install nvm not do anything useful, and npm install -g nvm simply initiate the standard installation procedure (or update, if it's already installed), so you shouldn't need any additional steps.

@danfinlay
Copy link

Oh that's great, so you will be able to npm i -g nvm! Fantastic.

@medaamarnadh
Copy link

Hi i am using windows system.

I gave the command npm install -g nvm
but it showing the same error

@ljharb
Copy link
Member

ljharb commented Mar 28, 2016

@medaamarnadh a) nvm does not support windows, please see the readme for some windows alternatives. b) the nvm on npm does not work and should not be used - see the deprecation message that shows up when you install it in the first place.

@medaamarnadh
Copy link

ok thank you

@monolithed
Copy link

@ljharb, is there any progress on this issue?

@ljharb
Copy link
Member

ljharb commented Sep 20, 2016

@monolithed at the moment, tha latest version of nvm on npm simply throws an error when you try to use or install it, directing you to http://nvm.sh.

After #400 is done, I'll look into replacing it with a postinstall script that runs the curl install script for you.

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

5 participants