【问题标题】:installing socket.io outputs (node-gyp rebuild 2> builderror.log) || (exit 0) and path to rebuild安装 socket.io 输出(node-gyp 重建 2> builderror.log)|| (exit 0) 和重建路径
【发布时间】:2015-03-13 04:50:29
【问题描述】:

我知道对此有一些问题,我阅读了它,但我没有找到解决它的解决方案,而且我得到的输出与其他用户不同,因为我没有收到任何关于 Microsoft 或其他用户的消息东西。

我收到的消息是:

> ws@0.5.0 install E:\wamp\www\sandbox\chat\node_modules\socket.io\node_modules\engine.io\node_modules\ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)


E:\wamp\www\sandbox\chat\node_modules\socket.io\node_modules\engine.io\node_modules\ws>node        
"C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild
/

> ws@0.4.31 install E:\wamp\www\sandbox\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)


E:\wamp\www\sandbox\chat\node_modules\socket.io\node_modules\socket.io-client\node_modules\engine.io-client\node_modules\ws>node 
"C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild

socket.io@1.2.1 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.3 (base64id@0.1.0, debug@1.0.3, engine.io-parser@1.1.0, ws@0.5
.0)
└── socket.io-client@1.2.1 (indexof@0.0.1, to-array@0.1.3, 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.3)

我想知道如何修复它,但我也想知道ws 是什么

【问题讨论】:

    标签: node.js socket.io npm


    【解决方案1】:

    看起来ws 已成功安装。您在运行您的应用程序/服务器时遇到任何问题吗?如果是这样,请上传npm-debug.log 作为要点https://github.com/gist 并在此处发布链接。

    至于“什么是ws”,您可以在这里阅读:https://github.com/einaros/ws#ws-a-nodejs-websocket-library

    【讨论】:

    • 感谢您的回答。我试着写了几行,模块工作正常,它没有显示任何错误,也许输出是正常的,因为它也安装了mongodb 包。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2023-03-17
    • 1970-01-01
    • 2023-04-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多