Open v1v opened 1 year ago
What happens if you run git clone https://github.com/nvm-sh/nvm.git "$NVM_DIR"
?
I think you have to clone the repo git clone https://github.com/nvm-sh/nvm/
then run install.sh that work for me
I managed to bypass the error when running nvm.sh
for the first time in https://github.com/elastic/apm-agent-nodejs/pull/3374/commits/597e18b37c5c91251935f6859dcec57123eee8ff
pretty much
PROFILE=/dev/null bash -c 'curl -sS -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash'
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
if [ -s "$NVM_DIR/nvm.sh" ] ; then
\. "$NVM_DIR/nvm.sh" || true
fi
It's not what I wanna do, but somehow I could not understand the reason why I could run the same commands in the same machine using an interactive shell, but it failed when running those steps as part of the CI pipeline.
Anyway I'll review whether those questions about cloning https://github.com/nvm-sh/nvm/
work fine in my end.
Thanks 🙏
Operating system and version:
uname
: 'Linux worker-1799330 5.15.0-71-generic #78~20.04.1-Ubuntu SMP Wed Apr 19 11:26:48 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux'OS
: "Ubuntu 20.04.5 LTS (Focal Fossa)"nvm debug
output:N/A
nvm ls
output:N/A
How did you install
nvm
?Install script in readme
and
What steps did you perform?
What happened?
nvm installation failed with the below error:
What did you expect to happen?
Either installing it or let me know what's the error about 🙏
Is there anything in any of your profile files that modifies the
PATH
?None
If you are having installation issues, or getting "N/A", what does
curl -I --compressed -v https://nodejs.org/dist/
print out?