2015-08-09 66 views
-1

這裏是日誌:的Macbook無法安裝HEXO

npm ERR! Error: read ETIMEDOUT 
npm ERR!  at errnoException (net.js:863:11) 
npm ERR!  at TCP.onread (net.js:524:19) 
npm ERR! If you need help, you may report this log at: 
npm ERR!  <http://github.com/isaacs/npm/issues> 
npm ERR! or email it to: 
npm ERR!  <[email protected]> 
npm ERR! System Darwin 14.1.0 
npm ERR! command "/Users/JianqingJiang/~/nvm/v0.10.0/bin/node" "/Users/JianqingJ 
npm ERR! cwd/ 
npm ERR! node -v v0.10.0 
npm ERR! npm -v 1.2.14 
npm ERR! syscall read 
npm ERR! code ETIMEDOUT 
npm ERR! errno ETIMEDOUT 
npm http GET https://registry.npmjs.org/abbrev 

我安裝混帳的node.js和看起來不錯,但我想安裝HEXO,錯誤出現。

+0

請發佈您正在使用的命令。 – Avalanche

回答

0

正如在評論中提到的,完整的命令會有所幫助。我會認爲你正在做npm install hexo ...

什麼都可以在這裏推斷是,NPM試圖獲得abbrev包(的hexo第一依賴,順便說一句)和HTTP請求超時。

所以你應該檢查你的網絡連接等(代理...),然後再試一次。我剛剛安裝在這裏沒有問題。

+0

網絡很好,我用命令「npm install -g hexo」 –

+0

你可以嘗試安裝一些小而不是全局的東西嗎?像'cd〜; mkdir testnode; cd testnode; npm install abbrev'並查看它是否有效?它應該非常快,因爲'abbrev'是一個小包裝。然後你可以簡單地刪除'testnode'目錄。讓我知道這是否有效。 – tgo

+0

sh-3.2#npm install abbrev npm http GET https://registry.npmjs.org/abbrev npm http 200 https://registry.npmjs.org/abbrev npm http GET https://registry.npmjs。 org/abbrev/-/abbrev-1.0.7.tgz npm http 200 https://registry.npmjs.org/abbrev/-/abbrev-1.0.7.tgz [email protected] node_modules/abbrev 分段錯誤:11 –