gpt4 book ai didi

javascript - 安装socket.io返回(node-gyp重建2> builderror.log)|| (0号导出)

转载 作者:太空宇宙 更新时间:2023-11-03 22:36:38 24 4
gpt4 key购买 nike

运行命令 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 请求会发送到存储库以下载这些依赖项。 为什么我在这里没有得到相同的输出?如果这是一个错误,那么我该如何解决这个问题?

最佳答案

你看到的是C++编译。一些 npm 模块采用 C++,在模块安装过程中进行编译。

关于javascript - 安装socket.io返回(node-gyp重建2> builderror.log)|| (0号导出),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27023988/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com