title: Angular 8 load external npm package
body: <p>I want to import the dragscroll.js package. I already tried importing it in the index.html like</p>
  
  <pre><code>&lt;script src="../node_modules/dragscroll/dragscroll.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>and in the angular.json like</p>
  
  <pre><code>"scripts": [
    "./node_modules/dragscroll/dragscroll.js"
  ]
  </code></pre>
  
  <p>It gives always this error:
  <em>dragscroll.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND</em></p>
  
  <p>I use Angular with Electron, if it's matters.</p>