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
I've been using nvm for a couple of years, but I found this to be pretty confusing. I installed on a new system and decided to use the --lts flag to install node. I typically just install using a version number like v8.11.1. So, I ran nvm ls-remote --lts and it returned a list of available versions with the lts name capitalized, e.g. v8.11.1 (Latest LTS: Carbon). Naturally, I then ran:
nvm install --lts=Carbon --latest-npm
I logged out and then back into the shell and got the same type of error as the OP in #1651. Notice the output of nvm ls:
The default is set to lts/Carbon, the name I used during installation, but the actual is lts/carbon. Just to test it, I deleted my .nvm directory and started over so I could capture the install message:
$ nvm install --lts=Carbon --latest-npm
Installing with latest version of LTS line: Carbon
Downloading and installing node v8.11.1...
Downloading https://nodejs.org/dist/v8.11.1/node-v8.11.1-linux-x64.tar.xz...
######################################################################## 100.0%
Computing checksum with sha256sum
Checksums matched!
Now using node v8.11.1 (npm v5.6.0)
! WARNING: Version 'lts/Carbon' does not exist.
Creating default alias: default -> lts/Carbon (-> N/A)
Attempting to upgrade to the latest working version of npm...
* Installing latest `npm`; if this does not work on your node version, please report a bug!
/home/nodebb/.nvm/versions/node/v8.11.1/bin/npm -> /home/nodebb/.nvm/versions/node/v8.11.1/lib/node_modules/npm/bin/npm-cli.js
/home/nodebb/.nvm/versions/node/v8.11.1/bin/npx -> /home/nodebb/.nvm/versions/node/v8.11.1/lib/node_modules/npm/bin/npx-cli.js
+ npm@5.8.0
added 89 packages, removed 42 packages and updated 67 packages in 9.076s
* npm upgraded to: v5.8.0
Sure enough, even though the installation completes, we get a warning:
! WARNING: Version 'lts/Carbon' does not exist.
Creating default alias: default -> lts/Carbon (-> N/A)
If the lowercase name is required for the default alias to be setup correctly, then the --lts= switch on install should either require lowercase or convert to lowercase automatically. It's confusing having ls-remote --lts return the names capitalized, while install requires lowercase.
The text was updated successfully, but these errors were encountered:
Operating system and version:
Ubuntu 16.04.4 LTS
nvm debug
output:nvm ls
output:How did you install
nvm
? (e.g. install script in readme, Homebrew):Install script in README
What steps did you perform?
See below.
What happened?
See below.
What did you expect to happen?
See below.
Is there anything in any of your profile files (
.bashrc
,.bash_profile
,.zshrc
, etc) that modifies thePATH
?No.
curl -I --compressed -v https://nodejs.org/dist/
print out?Originally posted in #1651.
I've been using
nvm
for a couple of years, but I found this to be pretty confusing. I installed on a new system and decided to use the--lts
flag to installnode
. I typically just install using a version number likev8.11.1
. So, I rannvm ls-remote --lts
and it returned a list of available versions with thelts
name capitalized, e.g.v8.11.1 (Latest LTS: Carbon)
. Naturally, I then ran:I logged out and then back into the shell and got the same type of error as the OP in #1651. Notice the output of
nvm ls
:The default is set to
lts/Carbon
, the name I used during installation, but the actual islts/carbon
. Just to test it, I deleted my.nvm
directory and started over so I could capture the install message:Sure enough, even though the installation completes, we get a warning:
If the lowercase name is required for the default alias to be setup correctly, then the
--lts=
switch oninstall
should either require lowercase or convert to lowercase automatically. It's confusing havingls-remote --lts
return the names capitalized, whileinstall
requires lowercase.The text was updated successfully, but these errors were encountered: