0
我試圖安裝在一些的NodeJS模塊,使用NPM,但在某些情況下,安裝不去上,並返回一個錯誤:的Node.js:錯誤:403狀態碼下載壓縮包
Error: 403 status code downloading tarball
D:\server\node_modules\canvas\node_modules\canvas>node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild
gyp http GET http://nodejs.org/dist/v0.8.3/node-v0.8.3.tar.gz
gyp http 403 http://nodejs.org/dist/v0.8.3/node-v0.8.3.tar.gz
gyp WARN install got an error, rolling back install
gyp ERR! rebuild error Error: 403 status code downloading tarball
gyp ERR! rebuild error at Request.async (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\install.js:215:14)
gyp ERR! rebuild error at Request.EventEmitter.emit (events.js:115:20)
gyp ERR! rebuild error at ClientRequest.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\request\main.js:521:12)
gyp ERR! rebuild error at ClientRequest.g (events.js:185:14)
gyp ERR! rebuild error at ClientRequest.EventEmitter.emit (events.js:88:17)
gyp ERR! rebuild error at HTTPParser.parserOnIncomingClient (http.js:1445:7)
gyp ERR! rebuild error at HTTPParser.parserOnHeadersComplete [as onHeadersComplete] (http.js:111:23)
gyp ERR! rebuild error at Socket.socketOnData (http.js:1356:20)
gyp ERR! rebuild error at TCP.onread (net.js:404:27)
gyp ERR! not ok
[email protected] node_modules\canvas
我使用的是Windows 7的64周 0.8.3的NodeJS
這可能是此錯誤:我當我嘗試安裝節點帆布再次得到這個? 'tarball'是什麼?
tarball是'.tar'文件,它是一種存檔(如zip文件)。似乎由於某種原因(出於某種奇怪的原因)服務器(或中間代理服務器)已返回HTTP 403錯誤(禁止訪問),並因此失敗。 – 2013-05-14 13:38:32
@ Qantas94Heavy感謝您的回答!你是對的! – 2013-05-29 11:25:19