title: npm install throwing errors Error: Invalid protocol
body: <p>Hi I am new to Node JS and i am trying to follow the sample in the book and when trying to do npm install i get the following error:</p>
  
  <p>Any help will be highly appreciated</p>
  
  <pre><code> C:\Developer\NODE_JS&gt;npm install
      npm WARN package.json chatrooms@0.0.1 No repository field.
      npm WARN package.json chatrooms@0.0.1 No README data
      npm http GET http://registry.npmjs.org/socket.io
      npm http GET http://registry.npmjs.org/mime
      npm http GET http://registry.npmjs.org/socket.io
      npm http GET http://registry.npmjs.org/mime
      npm http GET http://registry.npmjs.org/socket.io
      npm http GET http://registry.npmjs.org/mime
      npm ERR! Error: Invalid protocol
      npm ERR!     at Request.init (C:\Program Files\nodejs\node_modules\npm\node_modules\request\request.js:335:51)
      npm ERR!     at new Request (C:\Program Files\nodejs\node_modules\npm\node_modules\request\request.js:99:8)
      npm ERR!     at request (C:\Program Files\nodejs\node_modules\npm\node_modules\request\index.js:55:11)
      npm ERR!     at RegClient.makeRequest (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-registry-client\lib\request.js:211:13)
      npm ERR!     at RegClient.&lt;anonymous&gt; (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-registry-client\lib\request.js:117:17)
      npm ERR!     at null._onTimeout (C:\Program Files\nodejs\node_modules\npm\node_modules\retry\lib\retry_operation.js:32:10)
      npm ERR!     at Timer.listOnTimeout [as ontimeout] (timers.js:110:15)
      npm ERR! If you need help, you may report this *entire* log,
      npm ERR! including the npm and node versions, at:
      npm ERR!     &lt;http://github.com/isaacs/npm/issues&gt;
  
      npm ERR! System Windows_NT 6.1.7601
      npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
      npm ERR! cwd C:\Developer\NODE_JS
      npm ERR! node -v v0.10.24
      npm ERR! npm -v 1.3.21
      npm ERR!
      npm ERR! Additional logging details can be found in:
      npm ERR!     C:\Developer\NODE_JS\npm-debug.log
      npm ERR! not ok code 0
  </code></pre>
  
  <p>My Node js config is </p>
  
  <pre><code>C:\Developer\NODE_JS&gt;npm config list
  ; cli configs
  registry = "http://registry.npmjs.org/"
  
  ; userconfig C:\Users\&lt;uname&gt;\.npmrc
  https-proxy = "proxy.&lt;comp&gt;.com:8080"
  proxy = "proxy.&lt;comp&gt;.com:8080"
  registry = "http://registry.npmjs.org/"
  
  ; builtin config undefined
  prefix = "C:\\Users\\puppalap\\AppData\\Roaming\\npm"
  
  ; node bin location = C:\Program Files\nodejs\\node.exe
  ; cwd = C:\Developer\NODE_JS
  ; HOME = C:\Users\&lt;uname&gt;
  ; 'npm config ls -l' to show all defaults.
  </code></pre>