I have problem with installing node.js and npm on my Ubuntu terminal (WSL2).
I tried to follow this instructions:
https://learn.microsoft.com/en-us/windows/dev-environment/javascript/nodejs-on-wsl
Also see some videos on YouTube, but every time I have same error.
First, I run this command:
sudo apt-get install curl
after I am trying to install nvm, with this command :
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
after that it tells, that nvm is installed, but shows some errors(I will include img) and after that, I can't run this command to verify versions of node.js and npm :
command -v nvm //or this command
nvm ls
I already installed node.js in my windows, and when I open git bash and run this commands node -v and npm -v it shows me, which versions are installed. But as I use Ubuntu terminal with fish, I wanted to install node.js and npm on it too. Can someone tell me what I am doing wrong?





