title: node:internal/modules/cjs/loader:903 Cannot find yarn
body: <p>Tried</p>
  <pre><code>brew uninstall yarn
  brew uninstall node
  
  rm -rf ./node-modules
  
  brew install yarn
  brew reinstall yarn
  brew link yarn
  </code></pre>
  <p>and every possible other stackoverflow answer.</p>
  <p>I still get the following error:</p>
  <pre><code>node:internal/modules/cjs/loader:903
    throw err;
    ^
  
  Error: Cannot find module '/Users/nachiketpusalkar/.yarn/releases/yarn-1.22.4.js'
      at Function.Module._resolveFilename (node:internal/modules/cjs/loader:900:15)
      at Function.Module._load (node:internal/modules/cjs/loader:745:27)
      at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:72:12)
      at node:internal/main/run_main_module:17:47 {
    code: 'MODULE_NOT_FOUND',
    requireStack: []
  </code></pre>