title: How to avoid require(..\..\src\test) using NODE_PATH in nodejs
body: <p>How can I replace long relative file paths like <code>require(..\..\src\test)</code> with the more convenient notation <code>require(src\test)</code>?</p>
  <p>I try the solution of <code>NODE_PATH</code> in package.json following this article: <a href="https://www.coreycleary.me/escaping-relative-path-hell/" rel="nofollow noreferrer">https://www.coreycleary.me/escaping-relative-path-hell/</a></p>
  <p>but when run <code>npm start</code>, I get a 'MODULE_NOT_FOUND' error.</p>
  <p>My package.json look like this:</p>
  <pre><code>&quot;scripts&quot;: {
      &quot;start&quot;: &quot;NODE_PATH=/src/zip &amp;&amp; node index.js&quot;
    },
  </code></pre>
  <p>I work in a windows environment and get the error <code>'NODE_PATH' is not recognized as an internal or external command, operable program or batch file</code>.</p>