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.
Duplicate of https://github.com/brianloveswords/nvm/issues/5
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.
Most helpful comment
My plan is to actually have
npm install nvmnot do anything useful, andnpm install -g nvmsimply initiate the standard installation procedure (or update, if it's already installed), so you shouldn't need any additional steps.