Sockets 在BeagelBone Black上安装socket.io模块时出错

Sockets 在BeagelBone Black上安装socket.io模块时出错,sockets,Sockets,我正在尝试在我的BeagleBone Black上安装socket.io模块。 但我得到了以下错误:- root@beaglebone:~# npm install -g socket.io > utf-8-validate@1.2.1 install /usr/lib/node_modules/socket.io/node_modules/engine.io/node_modules/ws/node_modules/utf-8-validate > node-gyp rebui

我正在尝试在我的BeagleBone Black上安装socket.io模块。 但我得到了以下错误:-

root@beaglebone:~# npm install -g socket.io


> utf-8-validate@1.2.1 install /usr/lib/node_modules/socket.io/node_modules/engine.io/node_modules/ws/node_modules/utf-8-validate
> node-gyp rebuild

 WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/0.10.40"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/lib/node_modules/socket.io/node_modules/engine.io/node_modules/ws/node_modules/utf-8-validate/.node-gyp"
Usage: gyp_main.py [options ...] [build_file ...]

gyp_main.py: error: no such option: --no-parallel
gyp ERR! configure error 
gyp ERR! stack Error: `gyp` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onCpExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:343:16)
gyp ERR! stack     at ChildProcess.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:820:12)
gyp ERR! System Linux 3.8.13-bone70
gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/lib/node_modules/socket.io/node_modules/engine.io/node_modules/ws/node_modules/utf-8-validate
gyp ERR! node -v v0.10.40
gyp ERR! node-gyp -v v1.0.1
gyp ERR! not ok 
npm WARN optional dep failed, continuing utf-8-validate@1.2.1

> bufferutil@1.2.1 install /usr/lib/node_modules/socket.io/node_modules/engine.io/node_modules/ws/node_modules/bufferutil
> node-gyp rebuild

gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/0.10.40"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/lib/node_modules/socket.io/node_modules/engine.io/node_modules/ws/node_modules/bufferutil/.node-gyp"
我使用的是BBB附带的默认操作系统。 我已经更新和升级了BBB

I execute the following commands:-
1] ntpdate -b -s -u pool.ntp.org
2] npm config set strict-ssl false
3] npm install -g socket.io
请帮我解决这个问题

问候,, 阿披实

另外:-我尝试卸载并重新安装nodejs,但在此过程中,Cloud9也被卸载。现在,即使是nodejs也会给出安装错误。此外,我的BBB通过ssh连接,但“”不会在浏览器中打开


卡住了

我必须用最新的图像刷新我的BBB,然后安装npm。然后我就能够正确安装sockets.io并执行相关项目

我按照以下两个链接进行了同样的操作:-

对于闪烁BBB:-

安装npm时:-

我必须用最新的图像刷新我的BBB,然后安装npm。然后我就能够正确安装sockets.io并执行相关项目

我按照以下两个链接进行了同样的操作:-

对于闪烁BBB:-

安装npm时:-

用于安装socket.io

这让我的BBB为套接字相关的项目工作

问候,, Abhishek.

用于安装socket.io

这让我的BBB为套接字相关的项目工作

问候,,
阿披舍克。

看看,这些可能会解决你的问题。这些似乎都不起作用。我会用最新的图片刷新BBB,然后再试一次。看一看,这些可能会解决你的问题。这些似乎都不起作用。我将用最新图片刷新BBB,然后重试。这是最后一步!!这是最后一步!!这是前两步!!这是前两步!!