leisure

          JAVA - exceed,helloworld
          隨筆 - 50, 文章 - 0, 評論 - 11, 引用 - 0
          數(shù)據(jù)加載中……

          npm ERR! Error: socket hang up

          when i use npm to install express, it goes this message:

          npm info it worked if it ends with ok
          npm info using npm@1.0.106
          npm info using node@v0.6.2
          npm info addNamed [ 'express', '' ]
          npm ERR! Error: socket hang up
          npm ERR! at createHangUpError (http.js:1092:15)
          npm ERR! at CleartextStream. (http.js:1175:27)
          npm ERR! at CleartextStream.emit (events.js:88:20)
          npm ERR! at Array.0 (tls.js:731:22)
          npm ERR! at EventEmitter._tickCallback (node.js:192:40)
          npm ERR! Report this entire log at:
          npm ERR! http://github.com/isaacs/npm/issues
          npm ERR! or email it to:
          npm ERR! npm-@googlegroups.com
          npm ERR! 
          npm ERR! System Linux 3.0.0-12-generic
          npm ERR! command "node" "/usr/local/bin/npm" "install" 
          "express" "-d"
          npm ERR! cwd /home/leisure/software/node-v0.6.2
          npm ERR! node -v v0.6.2
          npm ERR! npm -v 1.0.106
          npm ERR! code ECONNRESET
          npm ERR! 
          npm ERR! Additional logging details can be found in:
          npm ERR! /home/leisure/software/node-v0.6.2/npm-
          debug.log
          npm 

          it sounds the https_proxy is broken.
          so try to use http registry to solve it:
          npm config set registry http://registry.npmjs.org/

          posted on 2011-11-23 15:11 leisure 閱讀(3331) 評論(1)  編輯  收藏 所屬分類: nodejs

          評論

          # re: npm ERR! Error: socket hang up  回復(fù)  更多評論   

          thx,解決了~
          2015-09-06 18:45 | Sigma

          只有注冊用戶登錄后才能發(fā)表評論。


          網(wǎng)站導(dǎo)航:
          博客園   IT新聞   Chat2DB   C++博客   博問  
           
          主站蜘蛛池模板: 萍乡市| 沐川县| 十堰市| 尚志市| 信宜市| 巴彦淖尔市| 东阿县| 吴川市| 廉江市| 乌拉特后旗| 锦州市| 罗城| 平远县| 梁山县| 基隆市| 天柱县| 建平县| 江孜县| 临漳县| 连平县| 施甸县| 西乌珠穆沁旗| 柞水县| 孟村| 太仆寺旗| 福清市| 县级市| 温泉县| 东海县| 东港市| 逊克县| 抚顺市| 樟树市| 额济纳旗| 绥滨县| 陵川县| 富平县| 荥阳市| 松原市| 和硕县| 中方县|