title: Import an external library into a javascript file
body: <p><strong>UPDATE</strong></p>
  
  <p>I'have purchased a plugin called <a href="https://codecanyon.net/item/filepicker-multi-file-uploader/11557024?s_rank=2" rel="nofollow noreferrer">filePicker</a> that I want to use in one of my vue.js components.</p>
  
  <p>When I tried to import its libraries this way</p>
  
  <pre><code>&lt;script&gt;
      import {filepicker} from '../filepicker';
      import {filepickerdrop} from '../filepicker-drop';
  &lt;/script&gt;
  </code></pre>
  
  <p>When I run <code>npm run dev</code> the 1st time after this, it asked to install this library</p>
  
  <pre><code>npm install --save filepicker
  </code></pre>
  
  <p>When I did and tried <code>npm run dev</code> the 2nd time, it asked for this</p>
  
  <pre><code>npm install --save fs net tls
  </code></pre>
  
  <p>I did and run <code>npm run dev</code> a 3rd time, it asked me for this</p>
  
  <pre><code>npm install --save fs
  </code></pre>
  
  <blockquote>
    <p>This dependency was not found: * fs in ./node_modules/request/lib/har.js</p>
  </blockquote>
  
  <p><strong>Problem</strong>: It keeps asking me to install this fs library.</p>
  
  <p>These installs have updated my <code>package.json</code> to this</p>
  
  <pre><code>"dependencies": {
      "filepicker": "^0.2.0",
      "fs": "0.0.1-security",
      "net": "^1.0.2",
      "tls": "0.0.1"
  }
  </code></pre>
  
  <p>This shows that the library FilePicker has been successfully installed, but the library <code>fs-security</code> that it's using is nowhere to be found.</p>
  
  <p>This <a href="https://www.npmjs.com/package/fs" rel="nofollow noreferrer">https://www.npmjs.com/package/fs</a> mentions that "this package name is not currently in use." What does this mean?</p>
  
  <p>LakiGeri, has suggested to locally install the FilePicker according to this <a href="https://stackoverflow.com/questions/8088795/installing-a-local-module-using-npm">post</a>. The errors show above that fs is the one who needs to be installed. And I don't have this library to install it.
  LakiGeri also suggested to follow the <a href="http://docs.hazzardweb.com/filepicker/2.0/configjs" rel="nofollow noreferrer">doc specifications</a>. I'm not even able to import its libraries, so how can even start to work on its configuration.
  The third advise was to manually update the dependencies in the <code>package.json</code> file. It has already been updated.</p>
  
  <p>I also opened an issue on <a href="https://github.com/npm/npm/issues/18172" rel="nofollow noreferrer">npm github repo</a>. I still have no feedback there.</p>