ich zur Zeit mit NodeJS zu verwenden "Express" Ich versuche aber aus irgendeinem Grund hält es gibt mir:bash: ausdrücken: Befehl nicht gefunden
bash: Express: Befehl nicht
gefunden
I verwende Windows, nur um zu erwähnen. Ich habe einige Dinge in zuvor beantworteten Fragen vorgeschlagen, aber nichts scheint zu funktionieren. Ich bin mir bewusst, der zwei Fragen hier: Answer 1 und Answer 2
Ich habe global ausdrücklich versucht, die Installation und es ergibt sich folgendes:
[email protected] D:\Programs\GIT\Git\usr\local\node_modules\express
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected], http-error [email protected])
Nachdem ich versuche, den Express-Generator es in dies führt zu installieren:
D:\Programs\GIT\Git\usr\local\express -> D:\Programs\GIT\Git\usr\local\node_modules\express-generator\bin\express.
[email protected] D:\Programs\GIT\Git\usr\local\node_modules\express-generator
Nach Eingabe: Express -v, es führt nur zu sagen "bash: Ausdrücklich: Befehl nicht gefunden"
ich habe versucht, die vorgeschlagener Befehl: /Users/[name]/.npm/bin/express
, aber es ergibt "Keine solche Datei oder Verzeichnis". Ich bin mir bewusst, dass ich den Pfad von Express ändern muss, aber ich bin ziemlich unsicher, wie das geht.
Ist 'C Wenn ein Diff-Version von Windows verwenden, dann müssen Sie wo sie zu finden: \ Benutzer \ \ AppData \ Roaming \ npm' in PATH? –
DrakaSAN
Unter Windows gibt es keine "Benutzer" (ich nehme an, Sie müssen ein Mac-Tutorial gelesen haben). Der tatsächliche Verzeichnisname, in dem die Datei installiert ist, müssen Sie Ihrem 'PATH' hinzufügen. – tripleee