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

1 Answer 1

4

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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .