Error Message /usr/bin/env: ‘bash\r’: No such file or directory
Error running the following commands in WSL2 (e.g. VS Code WSL2 bash or zsh terminal)
npm install
npm
npm start
npm run start
- VS Code WSL:
sudo apt install nodejs npm
- PowerShell:
wsl --shutdown
- VS Code WSL: Reload Window
- Vs Code WSL:
npm # test
https://superuser.com/questions/1769945/how-to-fix-npm-issue-on-wsl