title: Install yarn and npm in WSL
body: <p>I have installed Windows Subsystem for Linux (WSL) and Ubuntu 16.04 on my Windows 10. Then I followed <a href="https://websiteforstudents.com/how-to-install-yarn-packege-management-on-ubuntu-16-04-18-04-18-10/" rel="nofollow noreferrer">this</a> to install yarn:</p>
  
  <pre><code>sudo apt update
  sudo apt install curl
  curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
  echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
  sudo apt update
  sudo apt install yarn
  </code></pre>
  
  <p>It did not raise any error. However, <code>yarn --version</code> returned </p>
  
  <pre><code>$ yarn --version
  /mnt/c/Users/chengtie/AppData/Roaming/npm/yarn: 12: /mnt/c/Users/chengtie/AppData/Roaming/npm/yarn: node: not found
  </code></pre>
  
  <p><code>npm --version</code> returned</p>
  
  <pre><code>$ npm --version
  : not foundram Files/nodejs/npm: 3: /mnt/c/Program Files/nodejs/npm:
  : not foundram Files/nodejs/npm: 5: /mnt/c/Program Files/nodejs/npm:
  /mnt/c/Program Files/nodejs/npm: 6: /mnt/c/Program Files/nodejs/npm: Syntax error: word unexpected (expecting "in")
  </code></pre>
  
  <p>Does anyone know how to fix this?</p>