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
This problem is mentioned in the following sources, where various solutions were suggested:
This might be enough :
sudo apt install nodejs npm
to install node & npmwsl --shutdown
to restart the WSL servicewhich 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.