其實它不是一個錯誤。它是一個警告。我經歷過類似的只是前一陣子的東西:
# npm install -g phonegap
npm WARN deprecated [email protected]: module has been merged into crc32-stream
npm ERR! fetch failed http://github.com/component/emitter/archive/1.0.1.tar.gz
> [email protected] install /usr/local/lib/node_modules/phonegap/node_modules/connect-phonegap/node_modules/socket.io/node_modules/engine.io/node_modules/ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)
我不得不手動下載http://github.com/component/emitter/archive/1.0.1.tar.gz
# wget "http://github.com/component/emitter/archive/1.0.1.tar.gz"
並安裝:
# npm install -g 1.0.1.tar.gz
[email protected] /usr/local/lib/node_modules/emitter
└── [email protected]
然後再次運行命令,仍然收到警告但在一段時間後繼續並完成安裝:
# npm install -g phonegapnpm WARN deprecated [email protected]: module has been merged into crc32-stream
> [email protected] install /usr/local/lib/node_modules/phonegap/node_modules/connect-phonegap/node_modules/socket.io/node_modules/engine.io/node_modules/ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)
我剛開始嘗試phonegap。我希望你找到了一條出路。
我得到相同的錯誤...您是否找到了解決方案? – 2014-10-13 04:51:50