Ich arbeite an einer Echtzeit-Anwendung und ich verwende Dritte, um es zu tun. Aber jetzt muss ich node.js mit socket.io anstelle von Drittanbietern verwenden.install socket.io auf ubuntu
Ich habe die node.js (v0.4.12) korrekt installiert und überprüfe sie mit dem Befehl node -v
. aber als ich die socket.io mit npm install socket.io
Befehl installiert wurde, habe ich diesen Fehler.
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
Wie kann ich es lösen?
Knoten 0.4 ist nicht mehr aktuell. Installieren Sie zuerst die aktuelle Version. – josh3736
Ok, ich werde es tun. Danke – phpuser12
Danke. Ich löste es mit diesen Befehlen: 1- sudo npm installieren -g n 2-sudo n 0.8.15 3-sudo npm installieren socket.io – phpuser12