我正在研究一個實時應用程序,我正在使用第三方來完成它。 但現在我不得不使用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