3

when I call any of the below commands

npm
npm start
npm run start

I get this

/usr/bin/env: ‘bash\r’: No such file or directory
X3R0
  • 205

1 Answers1

5

This problem is mentioned in the following sources, where various solutions were suggested:

This might be enough :

  1. From WSL run sudo apt install nodejs npm to install node & npm
  2. From PowerShell/CMD run wsl --shutdown to restart the WSL service
  3. Next in WSL run which npm to confirm it's installed [output: /usr/bin/npm]

If this doesn't solve the issue, other solutions are suggested in the above sources.

harrymc
  • 498,455