title: Yarn does not work in WSL when I change the directory
body: <p>I've recently downloaded WSL on my system as well as Ubuntu 20.04 LTS.</p>
  <p>I installed Node JS on it and it seems to work fine.
  But when I tried installing yarn from the following command:</p>
  <p><code>curl -o- -L https://yarnpkg.com/install.sh | bash</code></p>
  <p>It installed yarn 1.22.5 and when I ran <code>yarn --version</code>, it returned <code>1.22.5</code></p>
  <p>But when I changed the directory to <code>/mnt/c/Users/user-name</code> and tried running <code>yarn --version</code>, it threw this error:</p>
  <pre><code>internal/modules/cjs/loader.js:888
    throw err;
    ^
  
  Error: Cannot find module '/mnt/c/users/user-name/C:\Users\user-name\.yarn\releases\yarn-1.22.10.cjs'
      at Function.Module._resolveFilename (internal/modules/cjs/loader.js:885:15)
      at Function.Module._load (internal/modules/cjs/loader.js:730:27)
      at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)      
      at internal/main/run_main_module.js:17:47 {
    code: 'MODULE_NOT_FOUND',
    requireStack: []
  }
  </code></pre>
  <p>Is there any way to fix this?</p>
  <p><strong>I found a solution to this:</strong></p>
  <p>Check <a href="https://classic.yarnpkg.com/en/docs/install/#debian-stable" rel="nofollow noreferrer">this</a> page out. Click on <code>Alternatives</code> and select the operating system <code>Debian / Ubuntu</code> and version <code>Classic Stable (1.22.5)</code>.</p>
  <p>You can follow the given instructions to install yarn from the Debian package repository, then have a look at the <code>Path Setup</code> section. Follow the instructions given there and yarn will be available globally!</p>
  <p>Then you can run <code>yarn --version</code> any where in you're <em>Ubuntu</em> shell and it should be working just fine!</p>