title: Nodejs NPM module not found while building webpack.dll
body: <p>I am using nodejs 12.16.0 and NPM 6.13.4
  I get module not found error as below when i do <strong>npm run build:dll</strong>.</p>
  
  <pre><code>ERROR in ./~/spdx-expression-parse/scan.js
  Module not found: Error: Can't resolve 'spdx-exceptions' in '/home/proj1/fronter/node_modules/spdx-expression-parse'
  @ ./~/spdx-expression-parse/scan.js 6:17-43
  @ ./~/spdx-expression-parse/index.js
  </code></pre>
  
  <p>When i try to list modules as below cli command :</p>
  
  <pre><code>npm list -g | grep spdx
      │ ├─┬ spdx-correct@3.0.0
  │ │ ├── spdx-expression-parse@3.0.0 deduped
  │ │ └── spdx-license-ids@3.0.3
  │ └─┬ spdx-expression-parse@3.0.0
  │   ├── spdx-exceptions@2.1.0
  │   └── spdx-license-ids@3.0.3 deduped
  </code></pre>
  
  <p>So you can see that spdx-exceptions module is there. But scan.js is throwing error that this module not found. </p>
  
  <p>When i look at node_modules directory, i can also see both modules there.</p>
  
  <p><a href="https://i.stack.imgur.com/33SZz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/33SZz.png" alt="enter image description here"></a></p>
  
  <p>I also installed modules manually again, it was successfull. But still giving module note found error although module is there.</p>
  
  <p>The code throwing the error is scan.js from spdx-expression-parse module. It gives not found for require()</p>
  
  <pre><code>var licenses = []
    .concat(require('spdx-license-ids'))
    .concat(require('spdx-license-ids/deprecated'))
  var exceptions = require('spdx-exceptions')
  </code></pre>
  
  <p>There are more module not found errors, i just shared one of them to be focused on solution.</p>