zainstaluj socket.io na ubuntu

Pracuję nad aplikacją w czasie rzeczywistym i używam do tego innej firmy. Ale teraz muszę użyć node.js z socket.io zamiast trzeciej strony.

Zainstalowałem poprawnie node.js (v0.4.12) i sprawdzam go za pomocą polecenianode -v . ale kiedy zainstalowałem socket.io używającnpm install socket.io polecenie Otrzymałem ten błąd.

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

Jak mogę to rozwiązać?

questionAnswers(4)

yourAnswerToTheQuestion