我试图将socket.io安装到我的beagleboneblack中,系统说我的节点-v是v0.8.22,安装应该至少高于0.10.0。 但我无法升级我的节点。 为了安装socket.io,我输入以下文本:
/usr/bin/ntpdate -b -s -u pool.ntp.org
cd /var/lib/cloud9
npm install socket.io
cp bonescript-socketio/* /var/lib/cloud9
错误讯息:
http GET https://registry.npmjs.org/socket.io-parser/2.3.1
WARN engine object-assign@4.1.0: wanted {"node":">=0.10.0"} (current: {"node":"v0.8.22","npm":"1.2.14"})
ERR! fetch failed https://registry.npmjs.org/ms/-ms-0.7.1.tgz
Error message upon completion:
npm ERR! Error: getaddrinfo ENOTFOUND
npm ERR! at errnoException (dns.js:37:11)
npm ERR! at Object.onanswer [as oncomplete] (dns.js:124:16)
npm ERR! If you need help, you may report this log at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR! <npm-@googlegroups.com>
npm ERR! System Linux 3.8.13
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "socket.io"
npm ERR! cwd /var/lib/cloud9
npm ERR! node -v v0.8.22
npm ERR! npm -v 1.2.14
npm ERR! syscall getaddrinfo
npm ERR! code ENOTFOUND
npm ERR! errno ENOTFOUND
npm http GET https://registry.npmjs.org/ms/-/ms-0.7.1.tgz
npm ERR! fetch failed https://registry.npmjs.org/ms/-/ms-0.7.1.tgz
npm http GET https://registry.npmjs.org/ms/-/ms-0.7.1.tgz
npm ERR! fetch failed https://registry.npmjs.org/ms/-/ms-0.7.1.tgz
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /var/lib/cloud9/npm-debug.log
npm ERR! not ok code 0
用于节点升级我试过
opkg update
但服务器似乎已关闭..
感谢你的注意力。
答案 0 :(得分:0)
如果您输入:
cat / etc / dogtag
你会得到一个读数。此读数会告诉您计算机上的Linux版本。如果您转到http://elinux.org/Beagleboard:BeagleBoneBlack_Debian,图像会定期更新为BBB和BBG板。
尝试更新映像,然后升级到较新版本的socket.io。
赛斯
P.S。如果这不起作用,请告诉我。