title: In WSL2: Ubuntu 20.04 for Windows 10 nodejs is installed but npm is not working
body: <p>I am using <strong>WSL2: Ubuntu 20.04</strong> in my <strong>Windows 10</strong> operating system. I have installed <code>nodejs</code> using the command <code>sudo apt-get install -y nodejs</code> when I do <code>node -v</code> command I get <code>v12.18.3</code></p>
  <pre>
  mrd@DESKTOP-2EO5K4H:/mnt/c/Users/musfi$ node -v
  v12.18.3
  </pre>
  <p>but when I do <code>npm -v</code> command I get this below command</p>
  <pre>
  mrd@DESKTOP-2EO5K4H:/mnt/c/Users/musfi$ npm -v
  -bash: /mnt/c/Program Files/nodejs/npm: /bin/sh^M: bad interpreter: No such file or directory
  </pre>
  <p>I also do <code>whereis</code> command. Hope this will help to find solution.</p>
  <pre>
  mrd@DESKTOP-2EO5K4H:/mnt/c/Users/musfi$ whereis node
  node: /usr/bin/node /usr/include/node /mnt/c/Program Files/nodejs/node.exe /usr/share/man/man1/node.1.gz
  
  mrd@DESKTOP-2EO5K4H:/mnt/c/Users/musfi$ whereis npm
  npm: /usr/bin/npm /mnt/c/Program Files/nodejs/npm /mnt/c/Program Files/nodejs/npm.cmd /usr/share/man/man1/npm.1
  </pre> 
  <p>I have tried almost all the stackoverflow solutions and github issues but nothing is worked for me.<br>
  Hope any kind soul has the solution to this problem. Thanks in advance.</p>