I'm trying to get the npm command to work but it doesn't want to. As i said in the title, I'm using the windows WSL2. I already have installed nodejs with Git Bash a long time ago but now I need it to work on my ubuntu terminal. How could I fix this issue?
My ubuntu terminal:
root@DESKTOP-U2RC2DU:~# node -v v10.19.0 root@DESKTOP-U2RC2DU:~# npm -bash: /mnt/c/Program Files/nodejs/npm: /bin/sh^M: bad interpreter: No such file or directory root@DESKTOP-U2RC2DU:~#