我正在研究一个实时应用程序,我正在使用第三方来完成它。 但现在我不得不使用node.js与socket.io而不是第三方。在Ubuntu上安装socket.io
我正确安装了node.js(v0.4.12),并使用命令node -v
进行了检查。 但是当我安装了socket.io使用npm install socket.io
命令我得到了这个错误。
npm ERR! install failed Error: Required package: options(latest) not found. (Found: ["0.0.3"])
npm ERR! install failed (required by: [email protected])
npm ERR! install failed at /usr/share/npm/lib/build.js:192:19
npm ERR! install failed at cb (/usr/share/npm/lib/utils/graceful-fs.js:32:9)
npm ERR! Error: Required package: options(latest) not found. (Found: ["0.0.3"])
npm ERR! (required by: [email protected])
npm ERR! at /usr/share/npm/lib/build.js:192:19
npm ERR! at cb (/usr/share/npm/lib/utils/graceful-fs.js:32:9)
npm ERR! Report this *entire* log at <http://github.com/isaacs/npm/issues>
npm ERR! or email it to <[email protected]>
npm ERR! Just tweeting a tiny part of the error will not be helpful.
npm not ok
我该如何解决它?
节点0.4严重过期。首先安装当前版本。 – josh3736
好的,我会做。谢谢 – phpuser12
谢谢。 我解决了它使用这些命令: 1- sudo npm install -g n 2-sudo n 0.8.15 3-sudo npm install socket.io – phpuser12