所以我试图在我的 CentOS VPS 上安装带有 Node.js 绑定的 ZeroMQ,但它失败了,我不知道如何修复它。
我正在运行 CentOS 6.5。
我使用以下方法安装了 Node.js 0.10.26:
sudo yum install nodejs npm
我使用以下方法安装了 ZeroMQ 2.2.0:
sudo yum install zeromq
最后尝试使用带有“zmq”版本“2.7.x”作为依赖项的 package.json 安装 ZeroMQ 绑定,然后运行:
npm install
该过程在命令处失败:
node-gyp rebuild
Traceback (most recent call last):
File "/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py", line 18, in <module>
sys.exit(gyp.script_main())
AttributeError: 'module' object has no attribute 'script_main'
我不确定在哪里寻找解决方案。有人有想法么?提前致谢。