0
的高致病性禽流感模塊的insatllation我想安裝節點的高致病性禽流感模塊,我使用下面的命令錯誤節點
npm install hapi
,我收到以下錯誤
npm http GET https://registry.npmjs.org/hapi
npm ERR! Error: failed to fetch from registry: hapi
npm ERR! at /usr/share/npm/lib/utils/npm-registry-client/get.js:139:12
npm ERR! at cb (/usr/share/npm/lib/utils/npm-registry-client/request.js:31:9)
npm ERR! at Request._callback (/usr/share/npm/lib/utils/npm-registry- client/request.js:136:18)
npm ERR! at Request.callback (/usr/lib/nodejs/request/main.js:119:22)
npm ERR! at Request.<anonymous> (/usr/lib/nodejs/request/main.js:212:58)
npm ERR! at Request.emit (events.js:88:20)
npm ERR! at ClientRequest.<anonymous> (/usr/lib/nodejs/request/main.js:209:10)
npm ERR! at ClientRequest.emit (events.js:67:17)
npm ERR! at CleartextStream.<anonymous> (http.js:1137:11)
npm ERR! at CleartextStream.emit (events.js:67:17)
npm ERR! You may report this log at:
npm ERR! <http://bugs.debian.org/npm>
npm ERR! or use
npm ERR! reportbug --attach /home/mohit/npm-debug.log npm
npm ERR!
npm ERR! System Linux 3.2.0-23-generic
npm ERR! command "node" "/usr/bin/npm" "install" "hapi"
npm ERR! cwd /home/mohit
npm ERR! node -v v0.6.12
npm ERR! npm -v 1.1.4
npm ERR! message failed to fetch from registry: hapi
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/mohit/npm-debug.log
npm not ok
我能夠安裝其他模塊,如請求& express,但在安裝hapi時出錯,如何解決錯誤
你能告訴我如何安裝我試過的最新節點版本:sudo apt-get install nodejs – Mohit
如果你在Ubuntu上,你可以使用[this ppa](https://launchpad.net/~chris-lea/ + archive/node.js /)以獲得更新的穩定版本的節點(早在Ubuntu Lucid中)。如果你使用的是Debian,你可以從[wheezy-backports,jessie或sid]獲得v0.10.26(https://packages.debian.org/search?keywords=nodejs&searchon=names&suite=all§ion=all)。 – mscdex
解決了,我刪除並安裝了節點和npm的最新版本,然後嘗試installin hapi模塊,它的工作感謝您的幫助 – Mohit