求助 node-gyp local checksum not match remote
发布于 2个月前 作者 sjfkai 168 次浏览 来自 问答

安装asyncblock 依赖 fibers

以下是npm install fibers时的部分log。 不懂这为什么要下载一份node源码…而且还报错了…求指点…

> [email protected] install /root/test/testnpm/node_modules/fibers
> node ./build.js

gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | linux | x64
gyp http GET http://nodejs.org/dist/v0.8.28/node-v0.8.28.tar.gz
gyp http 200 http://nodejs.org/dist/v0.8.28/node-v0.8.28.tar.gz
gyp http GET http://nodejs.org/dist/v0.8.28/SHASUMS.txt
gyp http 200 http://nodejs.org/dist/v0.8.28/SHASUMS.txt
gyp WARN install got an error, rolling back install
gyp ERR! configure error 
gyp ERR! stack Error: node-v0.8.28.tar.gz local checksum ebf74b2149dd79eccf766166bba47a58a95015cb not match remote ea2b94d75658914ddfe6a536ef27d1c016156e2d
gyp ERR! stack     at deref (/root/.nvm/v0.8.28/lib/node_modules/npm/node_modules/node-gyp/lib/install.js:299:20)
gyp ERR! stack     at IncomingMessage.<anonymous> (/root/.nvm/v0.8.28/lib/node_modules/npm/node_modules/node-gyp/lib/install.js:340:13)
gyp ERR! stack     at IncomingMessage.EventEmitter.emit (events.js:126:20)
gyp ERR! stack     at IncomingMessage._emitEnd (http.js:367:10)
gyp ERR! stack     at HTTPParser.parserOnMessageComplete [as onMessageComplete] (http.js:149:23)
gyp ERR! stack     at Socket.socketOnData (http.js:1491:20)
gyp ERR! stack     at TCP.onread (net.js:404:27)
gyp ERR! System Linux 2.6.32-358.el6.x86_64
gyp ERR! command "node" "/root/.nvm/v0.8.28/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--release"
gyp ERR! cwd /root/test/testnpm/node_modules/fibers
gyp ERR! node -v v0.8.28
gyp ERR! node-gyp -v v1.0.3
gyp ERR! not ok 

在各个版本测了一下 v0.10正常 v0.8 安装 node-gyp就报错,然后更新了一下npmnpm install npm -g 以后再npm install fibers报上面的错误 v0.12 也是上面的错误

1 回复

@fengmk2这里看到一个相同的问题。 帮忙看看吧……感谢

回到顶部