npm not working in WSL2
Sep 6, 2020 · 1 min read · When trying to run npm in WSL2 I got an error along these lines /mnt/c/Program Files/nodejs/npm: /bin/sh^M: bad interpreter: As the message indicates the problem is that WSL2 tries to run the Windows version of npm. You are supposed to be able to run...
AAmal commented