title: Webpack with html-webpack-plugin, error when installed globally
body: <p>I know this problem has been reported elsewhere, when webpack and html-webpack-plugin are installed with npm -g:</p>
  
  <pre><code>    module.js:341
      throw err;
      ^
  
  Error: Cannot find module 'html-webpack-plugin'
      at Function.Module._resolveFilename (module.js:339:15)
  </code></pre>
  
  <p>And the answer people have found is to <a href="https://github.com/webpack/webpack/issues/2131" rel="nofollow">install one or both locally to the project</a>. But that won't work for me. I need to get this working in our shared build system, not just in my dev environment. This means having it installed globally so that all projects have access to it via their ant/nant build scripts run by Jenkins. </p>
  
  <p>My project is very simple. A couple of html pages with content generated by reactJS scripts included in the html with script tags. This should be easy, and its beginning to be a pain. Thinking of dumping webpack and looking for another simple javascript package manager.</p>
  
  <p>Are there environment variables that we can use to tell webpack to look in the global node 'node_modules' directory for 'require'd plugings/packages?</p>
  
  <p>Suggestions?</p>