I am using Ubuntu 22.04 and on zsh shell.
While following the instructions to Install NodeJS, npm, and Docker as part of the CHT Core dev environment setup I ran into an issue.
I ran the first command and that worked as expected.
export nvm_version=`curl -s https://api.github.com/repos/nvm-sh/nvm/releases/latest | jq -r .name`
However, when I ran the second command
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/$nvm_version/install.sh | $SHELL . ~/.$(basename $SHELL)rc
I got the following error in my terminal
Error: the install instructions explicitly say to pipe the install script to `bash`; please follow them
If I understand correctly, the
$(basename $SHELL) part of the second command is designed to work both for bash and zsh. However, it did not work for me despite several tries.