title: How to avoid TypeScript modules resolving from parent directories of the project instead of node_modules?
body: <p>I have a module that is installed in <code>node_modules</code>, and want to import a file from it.</p>
  
  <p>I also have a locally installed version of this module in a parent directory to the one where my project is.</p>
  
  <p>For some reason, when I do <code>import { something } from 'my-module/myFile'</code>, it actually resolves it not by going in <code>node_modules</code>, but by taking my local version of that module that is stored somewhere else in my machine, in a parent directory.</p>
  
  <p>Why does TypeScript resolves modules outside of the directory it's being built in? How could it even find my module outside of its own folder and not just find it in node modules?</p>