Installieren Sie Express-on-Railway JS-Fehler
Frage
Ich habe diesen Fehler, wenn ich versuche, Express-on-Railway JS-Framework zu installieren. Bitte helfen Sie:https://github.com/1602/express-on-railway
npm ERR! error installing railway@0.1.7-8 Error: Unsupported
npm ERR! error installing railway@0.1.7-8 at checkEngine (/usr/local/lib/node_modules/npm/lib/install.js:570:14)
npm ERR! error installing railway@0.1.7-8 at Array.0 (/usr/local/lib/node_modules/npm/node_modules/slide/lib/bind-actor.js:15:8)
npm ERR! error installing railway@0.1.7-8 at LOOP (/usr/local/lib/node_modules/npm/node_modules/slide/lib/chain.js:15:13)
npm ERR! error installing railway@0.1.7-8 at chain (/usr/local/lib/node_modules/npm/node_modules/slide/lib/chain.js:20:4)
npm ERR! error installing railway@0.1.7-8 at installOne_ (/usr/local/lib/node_modules/npm/lib/install.js:548:3)
npm ERR! error installing railway@0.1.7-8 at installOne (/usr/local/lib/node_modules/npm/lib/install.js:488:3)
npm ERR! error installing railway@0.1.7-8 at /usr/local/lib/node_modules/npm/lib/install.js:425:9
npm ERR! error installing railway@0.1.7-8 at /usr/local/lib/node_modules/npm/node_modules/slide/lib/async-map.js:54:35
npm ERR! error installing railway@0.1.7-8 at Array.forEach (native)
npm ERR! error installing railway@0.1.7-8 at /usr/local/lib/node_modules/npm/node_modules/slide/lib/async-map.js:54:11
npm ERR! Unsupported
npm ERR! Not compatible with your version of node/npm: express@2.4.6
npm ERR! Required: {"node":">= 0.4.1 < 0.5.0"}
npm ERR! Actual: {"npm":"1.0.22","node":"v0.5.3-pre"}
npm ERR!
npm ERR! System Linux 2.6.38-11-generic
npm ERR! command "node" "/usr/local/bin/npm" "install" "railway" "-g"
npm ERR! cwd /home/gezope
npm ERR! node -v v0.5.3-pre
npm ERR! npm -v 1.0.22
...
npm not ok
Jede Hilfe wäre sehr geschätzt! Vielen Dank
Lösung
(Dies wäre ein Kommentar gewesen, aber eine Kommentarformatierung ist meh
Um dies zu tun:
cd node (your node dir)
git tag (see the list - I believe 0.4.11 is last marked stable)
git checkout v0.4.11
./configure
make clean
make
make uninstall
make install
Dann npm express installieren.
Das wird Sie auf 0.4.11 zurücksetzen und Sie sollten bereit sein zu rocken.
Andere Tipps
Express unterstützt nicht 0,5
Bitte verwenden Sie 0.4.x
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow