安装socket.io返回(node-gyp rebuild 2> builderror.log)|| (退出0)

时间:2014-11-19 18:12:25

标签: javascript node.js socket.io npm

运行命令sudo npm install socket.io时,我得到以下输出。

> ws@0.4.31 install /Users/xafar/Documents/projects/node/chat/node_modules/socket.io/node_modules/engine.io/node_modules/ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)

  CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
  SOLINK_MODULE(target) Release/bufferutil.node
  SOLINK_MODULE(target) Release/bufferutil.node: Finished
  CXX(target) Release/obj.target/validation/src/validation.o
  SOLINK_MODULE(target) Release/validation.node
  SOLINK_MODULE(target) Release/validation.node: Finished

> ws@0.4.31 install /Users/xafar/Documents/projects/node/chat/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)

  CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
  SOLINK_MODULE(target) Release/bufferutil.node
  SOLINK_MODULE(target) Release/bufferutil.node: Finished
  CXX(target) Release/obj.target/validation/src/validation.o
  SOLINK_MODULE(target) Release/validation.node
  SOLINK_MODULE(target) Release/validation.node: Finished
socket.io@1.2.0 node_modules/socket.io
├── debug@0.7.4
├── has-binary-data@0.1.3 (isarray@0.0.1)
├── socket.io-adapter@0.3.1 (object-keys@1.0.1, debug@1.0.2)
├── socket.io-parser@2.2.2 (isarray@0.0.1, component-emitter@1.1.2, benchmark@1.0.0, json3@3.2.6)
├── engine.io@1.4.2 (base64id@0.1.0, debug@1.0.3, engine.io-parser@1.1.0, ws@0.4.31)
└── socket.io-client@1.2.0 (to-array@0.1.3, indexof@0.0.1, component-bind@1.0.0, object-component@0.0.3, component-emitter@1.1.2, has-binary@0.1.5, parseuri@0.0.2, engine.io-client@1.4.2)

我想知道,因为通常当我在命令npm install something上运行时,http GET请求被发送到存储库以下载这些依赖项。 为什么我在这里没有获得相同的输出?如果这是一个错误,那么我该如何解决?

1 个答案:

答案 0 :(得分:0)

你看到的是C ++编译。 一些npm模块得到了C ++,它在模块安装过程中被编译。