I am attempting to install NodeJS via a Termius terminal in Home Assistant (Raspberry Pi).
I have used the instructions at https://www.ostechnix.com/install-node-js-linux/ which suggest installing NVM first. I have attempted this several times and each time, the log output seems to suggest success but it does not seem to stick as NVM is nowhere to be found.
I have tried both methods suggested:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.1/install.sh | bash
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.1/install.sh | bash
One example of output is below:
`➜ ~ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.1/install.sh | bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 13527 100 13527 0 0 34073 0 --:–:-- --:–:-- --:–:-- 34073
=> Downloading nvm from git to ‘/root/.nvm’
=> Cloning into ‘/root/.nvm’…
remote: Enumerating objects: 286, done.
remote: Counting objects: 100% (286/286), done.
remote: Compressing objects: 100% (252/252), done.
remote: Total 286 (delta 33), reused 100 (delta 21), pack-reused 0
Receiving objects: 100% (286/286), 146.00 KiB | 808.00 KiB/s, done.
Resolving deltas: 100% (33/33), done.
=> Compressing and cleaning up git repository
0
=> Appending nvm source string to /root/.zshrc
0
=> Appending bash_completion source string to /root/.zshrc
=> Close and reopen your terminal to start using nvm or run the following to use it now:
export NVM_DIR="$HOME/.nvm"
[ -s “$NVM_DIR/nvm.sh” ] && . “$NVM_DIR/nvm.sh” # This loads nvm
[ -s “$NVM_DIR/bash_completion” ] && . “$NVM_DIR/bash_completion” # This loads nvm bash_completion
➜ ~ export NVM_DIR="$HOME/.nvm"
➜ ~ `
another is below:
`➜ ~ wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.1/install.sh | bash
=> Downloading nvm from git to ‘/root/.nvm’
=> Cloning into ‘/root/.nvm’…
remote: Enumerating objects: 286, done.
remote: Counting objects: 100% (286/286), done.
remote: Compressing objects: 100% (252/252), done.
remote: Total 286 (delta 33), reused 100 (delta 21), pack-reused 0
Receiving objects: 100% (286/286), 146.00 KiB | 830.00 KiB/s, done.
Resolving deltas: 100% (33/33), done.
=> Compressing and cleaning up git repository
0
=> Appending nvm source string to /root/.zshrc
0
=> Appending bash_completion source string to /root/.zshrc
=> Close and reopen your terminal to start using nvm or run the following to use it now:
export NVM_DIR="$HOME/.nvm"
[ -s “$NVM_DIR/nvm.sh” ] && . “$NVM_DIR/nvm.sh” # This loads nvm
[ -s “$NVM_DIR/bash_completion” ] && . “$NVM_DIR/bash_completion” # This loads nvm bash_completion
➜ ~ export NVM_DIR="$HOME/.nvm"
➜ ~ `
I did also close and reopen the terminal but still n success. Any ideas?