Npm/Node getting "/usr/bin/env: node: No such file or directory" on Ubuntu on WSL2 on Windows 10 error

Viewed 410

I have tried to add things to my $PATH, I have tried ln -s /usr/bin/nodejs /usr/bin/node

I first installed nodejs using nvm with curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.0/install.sh | bash

I then ran nvm install -lts and it shows me I have v.14.16.0 installed, but then it says "nvm is not compatible with the npm config "prefix" option: currently set to "" Run npm config delete prefix or nvm use --delete-prefix v14.16.0 to unset it." When I try both of those commands, neither of them work. I've tried going into my .bash_profile, .bashrc, and .bashrc.bash files and I don't see anything I can change?

Please help!

0 Answers
Related