title: Cannot find module 'node-static'
body: <p>I am trying to run samples regarding webrtc. For that I went to </p>
  
  <p><a href="https://bitbucket.org/webrtc/codelab/src/50a47bb092483fd7ca27998a365dff434919bf89?at=master" rel="noreferrer">https://bitbucket.org/webrtc/codelab/src/50a47bb092483fd7ca27998a365dff434919bf89?at=master</a></p>
  
  <p>At step 5 I needed to run server.js. For that I opened my Windows Command prompt and entered:</p>
  
  <p><strong>C:\Program Files\nodejs>node D:\GITProjects\codelab\complete\step5\server.js</strong></p>
  
  <p>But I got this error:</p>
  
  <pre><code>module.js:338
      throw err;
            ^ Error: Cannot find module 'node-static'
      at Function.Module._resolveFilename (module.js:336:15)
      at Function.Module._load (module.js:278:25)
      at Module.require (module.js:365:17)
      at require (module.js:384:17)
      at Object.&lt;anonymous&gt; (D:\GITProjects\codelab\complete\step5\server.js:1:76)
  
      at Module._compile (module.js:460:26)
      at Object.Module._extensions..js (module.js:478:10)
      at Module.load (module.js:355:32)
      at Function.Module._load (module.js:310:12)
      at Function.Module.runMain (module.js:501:10)
  </code></pre>
  
  <p>I have already installed node-static module and it is present at </p>
  
  <p>"C:\Program Files\nodejs\node_modules\node-static"</p>
  
  <p><img src="https://i.stack.imgur.com/Lh0xp.png" alt="enter image description here"></p>
  
  <p>Still I am getting the error "Cannot find module 'node-static'".</p>
  
  <p>Environmental "PATH" variable is set to "C:\Users\user\AppData\Roaming\npm" </p>
  
  <p>I can see the node-static folder is present at "C:\Users\user\AppData\Roaming\npm\node_modules\node-static" path too.</p>
  
  <p><strong>Edit</strong>:</p>
  
  <p>Based on the comments I tried this on Windows Command Prompt to install node-static:</p>
  
  <p><strong>C:\Program Files\nodejs>npm install node-static -g</strong></p>
  
  <p>I got this as the output:</p>
  
  <pre><code>C:\Users\user\AppData\Roaming\npm\static -&gt; C:\Users\user\AppData\Roaming\np
  m\node_modules\node-static\bin\cli.js
  node-static@0.7.6 C:\Users\user\AppData\Roaming\npm\node_modules\node-static
  ├── mime@1.3.4
  ├── colors@1.1.2
  └── optimist@0.6.1 (wordwrap@0.0.3, minimist@0.0.10)
  </code></pre>
  
  <p>Can you help me location the cause of my issue?</p>