title: How to install npm module from local folder?
body: <p>I downloaded a package from github: <a href="https://github.com/javve/list.fuzzysearch.js" rel="nofollow">list.fuzzysearch.js</a>. Unzipped it to a folder</p>
  
  <p>Then in my project folder, I install it as follows:
  <code>npm install Path/to/LocalFolder/list.fuzzysearch.js-master -S</code></p>
  
  <p>When I bundle my project js using webpack, I got below error, which seems to miss some module required by the package I installed. </p>
  
  <p><strong><em>Question 1</em></strong>: Should I do a <code>npm install</code> in the downloaded package's folder first, before I install this package into my project.  i.e:  <code>~/local/folder/list.fuzzysearch.js-master$ npm install</code></p>
  
  <p><strong><em>Question 2</em></strong>: when I import a module in my app.js, how do I write the path? i.e. <code>import module from</code>modulePath<code>, that</code>modulePath`, shall I just put module name (e.g. 'react'), or the path to the js file in node_module folder (e.g. 'node_module/react/dist/react.js') ?</p>
  
  <p><strong><em>Question 3</em></strong>: is there a way to find out all transitive dependency of a module, and install them along the way?</p>
  
  <p>errors:  </p>
  
  <pre><code>ERROR in ./~/list.fuzzysearch.js/index.js
  Module not found: Error: Cannot resolve module 'classes' in /home/mypc/IdeaProject/OpenDimSum/frontend/node_modules/list.fuzzysearch.js
   @ ./~/list.fuzzysearch.js/index.js 1:14-32
  
  ERROR in ./~/list.fuzzysearch.js/index.js
  Module not found: Error: Cannot resolve module 'extend' in /home/mypc/IdeaProject/OpenDimSum/frontend/node_modules/list.fuzzysearch.js
   @ ./~/list.fuzzysearch.js/index.js 3:13-30
  
  ERROR in ./~/list.fuzzysearch.js/index.js
  Module not found: Error: Cannot resolve module 'to-string' in /home/mypc/IdeaProject/OpenDimSum/frontend/node_modules/list.fuzzysearch.js
   @ ./~/list.fuzzysearch.js/index.js 4:15-35
  
  ERROR in ./~/list.fuzzysearch.js/index.js
  Module not found: Error: Cannot resolve module 'get-by-class' in /home/mypc/IdeaProject/OpenDimSum/frontend/node_modules/list.fuzzysearch.js
   @ ./~/list.fuzzysearch.js/index.js 5:17-40
  </code></pre>
  
  <p>my app javascript:</p>
  
  <pre><code>require('../../../node_modules/bootstrap/dist/css/bootstrap.css')
  require ('../public/styles.css')
  require ('../index.html')
  import React from 'react'
  import {render} from 'react-dom'
  import 'list.js'
  import 'list.fuzzysearch.js'
  require('../../../node_modules/bootstrap/dist/js/bootstrap')
  </code></pre>