title: yarn "Error: EISDIR: illegal operation on a directory, read"
body: <p>Suddenly yarn is not working. Npm works perfectly but yarn only is able to run yarn -v, any other command such as yarn, yarn test, or yarn watch shows this error</p>
  <pre><code>Arguments: 
    /home/my.user/.nvm/versions/node/v14.15.4/bin/node /home/my.user/.nvm/versions/node/v14.15.4/bin/yarn
  
  PATH: 
    /home/my.user/.nvm/versions/node/v14.15.4/bin:/home/my.user/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
  
  Yarn version: 
    1.22.10
  
  Node version: 
    14.15.4
  
  Platform: 
    linux x64
  
  Trace: 
    Error: EISDIR: illegal operation on a directory, read
  
  npm manifest: 
    {
      &quot;name&quot;: &quot;one&quot;,
      &quot;version&quot;: &quot;1.0.0&quot;,
      &quot;description&quot;: &quot;&quot;,
      &quot;main&quot;: &quot;index.js&quot;,
      &quot;scripts&quot;: {
        &quot;test&quot;: &quot;echo 'hello'&quot;
      },
      &quot;keywords&quot;: [],
      &quot;author&quot;: &quot;&quot;,
      &quot;license&quot;: &quot;ISC&quot;
    }
  
  yarn manifest: 
    No manifest
  
  Lockfile: 
    No lockfile
  </code></pre>