title: Cannot find modules that have been installed locally by NPM
body: <p>I am working on a tool and I have installed some modules locally through NPM, and I get errors when I try to require these modules through NodeJS. I am working in Windows 10, I have already tried setting up NODE_PATH etc.</p>
  
  <p>Below is the structure of my files:</p>
  
  <pre><code>-&gt;project  
  ----&gt;node_modules  
  ----&gt;src  
  --------&gt;css  
  --------&gt;js  
  -----------&gt;index.js  
  ----&gt;package.json  
  ----&gt;index.html
  </code></pre>
  
  <p>I populate the index.html by using index.js etc.
  Below is the code of my <code>package.json</code>:</p>
  
  <pre><code>{
    "name": "bip39",
    "version": "1.0.0",
    "description": "A tool for converting BIP39 mnemonic phrases to addresses and private keys.",
    "directories": {
      "test": "tests"
    },
    "dependencies": {
      "bip39": "^2.6.0",
      "bigi": "^1.4.2",
      "create-hmac": "^1.1.7",
      "nem-sdk": "^1.6.7"
    },
    "devDependencies": {},
    "scripts": {
      "test": "echo \"Error: no test specified\" &amp;&amp; exit 1"
    },
    "repository": {
      "type": "git",
      "url": "git+https://github.com/PavlosTze/bip39.git"
    },
    "author": "",
    "license": "ISC",
    "bugs": {
      "url": "https://github.com/PavlosTze/bip39/issues"
    },
    "homepage": "https://github.com/PavlosTze/bip39#readme"
  }
  </code></pre>
  
  <p>Below is my require() code:</p>
  
  <pre><code>var createHmac = require("create-hmac");
  var BigInteger = require("bigi");
  const bip39 = require("bip39");
  const nem = require("nem-sdk").default;
  </code></pre>
  
  <p>I have done the following steps on NPM:<br>
  1) npm init<br>
  2) npm install bip39<br>
  3) npm install nem-sdk<br>
  4) npm install bigi<br>
  5) npm install create-hmac  </p>
  
  <p>All these files are inside the <code>node_modules</code>, but still, whenever I run the code in the browser I get an 'Error: Cannot find module "bip39"', etc. for all modules.</p>
  
  <p>EDIT: On another directory that I have cloned the same tool, before I merged it with another one, I get no error and everything works correctly, including the require(). etc. Do you need any of those files as well?</p>
  
  <p>Can someone help me please?</p>