After installing npm on WSL Ubuntu 20.04 I get the message “/usr/bin/env: ‘bash\r’: No such file or directory”
This may be a line endings issue, but not from Ubuntu. Make sure you have node and npm installed correctly: From WSL run sudo apt install nodejs npm to install node & npm From PowerShell/CMD run wsl –shutdown to restart the WSL service Next in WSL run which npm to confirm it’s installed [output: /usr/bin/npm] … Read more