Open GopherJ opened 3 years ago
After that fails, I'd expect the actual nvm install
to have succeeded, but the overarching command would exit nonzero because the package reinstallation failed. I'd also expect every package alphabetically before the failed one would successfully install. Is that the case?
@ljharb Yes I would like to see a list with succeed/failed packages so that I can manage those failed packages
The reinstalled global packages are all installed as one npm install
command, both for speed and for simplicity of the code. Can you share the exact output you got?
➜ tunnel git:(main) ✗ nvm install v12.19.0 --reinstall-packages-from=v10.15.3
v12.19.0 is already installed.
Now using node v12.19.0 (npm v6.14.8)
VERSION=''
Reinstalling global packages from v10.15.3...
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/tstags - Not found
npm ERR! 404
npm ERR! 404 'tstags@0.1.0' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/cheng/.npm/_logs/2020-10-22T08_24_23_963Z-debug.log
Linking global packages from v10.15.3...
No linked global packages found...
➜ tunnel git:(main) ✗
hi @ljharb here the logs, tstags
is installed using git url, so it's normal that npm cannot find it
Thanks. Looking at this tho, it's still proceeding to re-link global packages - I assume that echo $?
at this point prints out 0
?
@ljharb yes it's 0
Operating system and version:
Linux Mint v19.3 cinamon
nvm debug
output:nvm ls
output:How did you install
nvm
?What steps did you perform?
What happened?
it exited totally after failling to install one package - tstags
I installed tstags from git, so it's normal that npm cannot find it. But nvm should give a list with succeed packages and failed packages instead of failling all...
What did you expect to happen?
Is there anything in any of your profile files that modifies the
PATH
?If you are having installation issues, or getting "N/A", what does
curl -I --compressed -v https://nodejs.org/dist/
print out?