Nvm: NVM in npm is not the right one?

Created on 10 Oct 2013  路  11Comments  路  Source: nvm-sh/nvm

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

Most helpful comment

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.

All 11 comments

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.

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.

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.

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.

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

Hi i am using windows system.

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

@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.

ok thank you

@ljharb, is there any progress on this issue?

@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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

serbiant picture serbiant  路  4Comments

pixelchutes picture pixelchutes  路  3Comments

ksmithut picture ksmithut  路  3Comments

dtgriscom picture dtgriscom  路  4Comments

danielepolencic picture danielepolencic  路  4Comments