Open jorge-j1m opened 1 year ago
the nvm debug
output has a lot of unexpected errors in it - the ls
ones in particular. I suspect that's contributing.
Have you manually installed or updated any of the core posix utilities listed?
I installed it using the fish
shell and I had to edit a few stuff for it to work, but I completely got rid of that, including my old nvm insallation, and I'm trying now from zsh
. How can I debug these ls
issues, what's the expected result there? @ljharb
alasly alasyl
@jorge-j1m note that nvm doesn't support fish, because fish isn't POSIX-compliant.
Here's my nvm debug
output, as a comparison:
nvm --version: v0.39.3
$TERM_PROGRAM: Apple_Terminal
$SHELL: /bin/bash
$SHLVL: 1
whoami: 'ljharb'
${HOME}: /Users/ljharb
${NVM_DIR}: '${HOME}/.nvm'
${PATH}: ${NVM_DIR}/versions/node/v19.7.0/bin:/usr/local/bin:${HOME}/bin:/usr/local/opt/openssl/bin:${HOME}/.jsvu:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/MacGPG2/bin:/Library/Apple/usr/bin:/usr/local/git/bin
$PREFIX: ''
${NPM_CONFIG_PREFIX}: ''
$NVM_NODEJS_ORG_MIRROR: ''
$NVM_IOJS_ORG_MIRROR: ''
shell version: 'GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin20)'
uname -a: 'Darwin 20.6.0 Darwin Kernel Version 20.6.0: Sun Nov 6 23:17:00 PST 2022; root:xnu-7195.141.46~1/RELEASE_X86_64 x86_64'
checksum binary: 'shasum'
OS version: macOS 11.7.2 20G1020
awk: /usr/bin/awk, awk version 20200816
curl: /usr/bin/curl, curl 7.64.1 (x86_64-apple-darwin20.0) libcurl/7.64.1 (SecureTransport) LibreSSL/2.8.3 zlib/1.2.11 nghttp2/1.41.0
wget: /usr/local/bin/wget, GNU Wget 1.21.3 built on darwin20.6.0.
sed: /usr/bin/sed
cut: /usr/bin/cut
basename: /usr/bin/basename
rm: /bin/rm
mkdir: /bin/mkdir
xargs: /usr/bin/xargs
git: /usr/local/bin/git, git version 2.33.0
grep: /usr/bin/grep (\grep --color), grep (BSD grep) 2.5.1-FreeBSD
nvm current: v19.7.0
which node: ${NVM_DIR}/versions/node/v19.7.0/bin/node
which iojs:
which npm: ${NVM_DIR}/versions/node/v19.7.0/bin/npm
npm config get prefix: ${NVM_DIR}/versions/node/v19.7.0
npm root -g: ${NVM_DIR}/versions/node/v19.7.0/lib/node_modules
Same issue for me too This is what am getting curl -I --compressed -v https://nodejs.org/dist/
HEAD /dist/ HTTP/2 Host: nodejs.org user-agent: curl/7.86.0 accept: / accept-encoding: deflate, gzip
< HTTP/2 403 HTTP/2 403 < cache-control: no-cache cache-control: no-cache < x-xss-protection: 1 x-xss-protection: 1 < content-type: text/html; charset=utf-8 content-type: text/html; charset=utf-8 < content-length: 17696 content-length: 17696 < pragma: no-cache pragma: no-cache
<
@rkayala that output suggests it should be working fine, but the "Optum IT Web Proxy HTTPS Proxy" line suggests that you have a proxy, your ~/.curlrc
is set up to use it, but nvm explicitly ignores curlrc, so nvm can't get through your proxy.
Operating system and version:
Ubuntu 22.04
nvm debug
output:nvm ls
output:How did you install
nvm
?Install script
What steps did you perform?
curl script | bash
What happened?
Running
nvm install X
doesn't work, after doingnvm ls-remote
then all I get isN/A
. I've confirmed it's not an issue with curl, or the CA, unsure what else I should be checking.What did you expect to happen?
Being able to install a specific node version
Is there anything in any of your profile files that modifies the
PATH
?No
If you are having installation issues, or getting "N/A", what does
curl -I --compressed -v https://nodejs.org/dist/
print out?