Nodemon: OSX-Knoten nicht im Pfad

Erstellt am 9. Juli 2013  ·  4Kommentare  ·  Quelle: remy/nodemon

Wenn es unter OSX mit "npm install -g nodemon" installiert wird, wird es in "/usr/local/share/npm/bin" installiert, also musste ich diesen Pfad zur Datei /etc/paths hinzufügen, damit es funktioniert. Ich bin mir nicht sicher, ob es ein Fehler ist, aber ich dachte, ich würde es posten.

Hilfreichster Kommentar

Ebenfalls:

/usr/local/Cellar/node/0.12.7/libexec/npm/bin/nodemon -> /usr/local/Cellar/node/0.12.7/libexec/npm/lib/node_modules/nodemon/bin/nodemon.js
[email protected] /usr/local/Cellar/node/0.12.7/libexec/npm/lib/node_modules/nodemon
├── [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])

Nachdem ich einen Link erstellt habe

ln -s /usr/local/Cellar/node/0.12.7/libexec/npm/bin/nodemon /usr/local/bin/

Ende alles funktioniert für mich. Vielleicht hilft das jemandem...

Alle 4 Kommentare

@medoix Ich bin mir ziemlich sicher, dass dies die npm-Konfiguration und nicht speziell nodemon ist. Höchstwahrscheinlich ist dies Ihr Problem https://github.com/Homebrew/homebrew/issues/21627

Zustimmen und schließen.

Problem mit Homebrew hilft mt nicht. Nodemon installieren und immer haben

michael:~$ nodemon
-bash: nodemon: command not found

Ebenfalls:

/usr/local/Cellar/node/0.12.7/libexec/npm/bin/nodemon -> /usr/local/Cellar/node/0.12.7/libexec/npm/lib/node_modules/nodemon/bin/nodemon.js
[email protected] /usr/local/Cellar/node/0.12.7/libexec/npm/lib/node_modules/nodemon
├── [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])

Nachdem ich einen Link erstellt habe

ln -s /usr/local/Cellar/node/0.12.7/libexec/npm/bin/nodemon /usr/local/bin/

Ende alles funktioniert für mich. Vielleicht hilft das jemandem...

War diese Seite hilfreich?
0 / 5 - 0 Bewertungen

Verwandte Themen

piton13 picture piton13  ·  3Kommentare

Exeteres picture Exeteres  ·  4Kommentare

hkeio picture hkeio  ·  3Kommentare

ehmicky picture ehmicky  ·  4Kommentare

remy picture remy  ·  5Kommentare