You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How did you install nvm? (e.g. install script in readme, Homebrew):
script in readme: curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
What steps did you perform?
Ran accedentially nvm install ---latest-npm when trying to install the latest node version
What happened?
It gave weird & unclear errors:
grep: unrecognized option '---latest-npm'
Usage: grep [OPTION]... PATTERN [FILE]...
Try 'grep --help' for more information.
grep: unrecognized option '---latest-npm'
Usage: grep [OPTION]... PATTERN [FILE]...
Try 'grep --help' for more information.
Version '---latest-npm' not found - try `nvm ls-remote` to browse available versions.
What did you expect to happen?
It should have given me a clear warning that I passed an unknown command flag to nvm, and not to grep
Is there anything in any of your profile files (.bashrc, .bash_profile, .zshrc, etc) that modifies the PATH?
I use the latest Ubuntu LTS version, and that one doesn't modify the path
The text was updated successfully, but these errors were encountered:
Considering that all unknown options to nvm install are assumed to be additional parameters passed to a source install, I'm not sure any error can be given here. The "fix" would be to make it not error at all.
ljharb
added a commit
to ljharb/nvm
that referenced
this issue
Feb 25, 2019
Operating system and version:
nvm debug
output:nvm ls
output:How did you install
nvm
? (e.g. install script in readme, Homebrew):script in readme:
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
What steps did you perform?
Ran accedentially
nvm install ---latest-npm
when trying to install the latest node versionWhat happened?
It gave weird & unclear errors:
It should have given me a clear warning that I passed an unknown command flag to nvm, and not to grep
.bashrc
,.bash_profile
,.zshrc
, etc) that modifies thePATH
?I use the latest Ubuntu LTS version, and that one doesn't modify the path
The text was updated successfully, but these errors were encountered: