"Erlaubnis Verweigert" in den Knoten auf Linux, wenn start-Skript /w local nodemon/Mokka/babel-Knoten
Habe ich Probleme mit meinem neuen linux-setup - habe ich installiert nodemon als lokale Abhängigkeit (NICHT Global) und ich versuche, führen Sie dann aus meinem Paket.json - "start"-Skript. Ich bin immer mit dieser Berechtigung Fehler.
node
von selbst funktioniert Super, aber sobald ich versuche zu verwenden babel-node
oder nodemon
oder sogar mocha
ich die Erlaubnis bekommen, Probleme.
Mein setup ist aufgeteilt auf 2 Festplatten - Knoten ist installiert auf meiner SSD (mit dem OS) und mein Projekt (und es ist node_modules, wo ich versuche ausführen nodemon
aus auf meine storage-HDD.
sh: 1: nodemon: Permission denied
npm ERR! Linux 3.19.0-56-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "start"
npm ERR! node v5.9.0
npm ERR! npm v3.7.3
npm ERR! code ELIFECYCLE
npm ERR! vyggo-easyrtc@1.0.0 start: `nodemon --exec node entry`
npm ERR! Exit status 126
npm ERR!
npm ERR! Failed at the vyggo-easyrtc@1.0.0 start script 'nodemon --exec node entry'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the vyggo-easyrtc package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! nodemon --exec node entry
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs vyggo-easyrtc
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls vyggo-easyrtc
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /media/goatic/HDD/Projects/Node/vyggo-easyrtc/npm-debug.log
goatic@goatic-laptop:/media/goatic/HDD/Projects/Node/vyggo-easyrtc$
InformationsquelleAutor Goatic | 2016-03-21
Schreibe einen Kommentar Antworten abbrechen
Du musst angemeldet sein, um einen Kommentar abzugeben.
Ich hatte dieses problem nach dem Wechsel verschieben meiner Projekt von einem NTFS-Dateisystem auf linux. Ich änderte alle Datei - /Verzeichnis-Berechtigungen zu 644/755 und auch die owner/group. Das ist, wenn ich begann immer diese Fehlermeldung.
Als ich versuchte nodemon in der Klemme, ich habe
command not found
. Seltsam.Neuinstallation nodemon es fest:
chmod 711 your/files
Meine sekundäre Festplatte nicht kompatibel ist mit meinem linux-OS in Bezug auf die Berechtigungen, wie auf eine NTFS-partition.
Landete ich bewegen alles, um meine primäre Festplatte, und natürlich die Berechtigungen wurden wieder arbeiten, erlauben Sie mir, zum ausführen lokaler Abhängigkeiten.
Denke ich die Lösung zu meinem problem, hatte verließ ich mich auf das halten von Projekten, die auf das sekundäre Laufwerk zu formatieren Sie es in ein format kompatibel mit Linux-Berechtigungen.
Wenn Sie die Installation in einem MAC Verwenden.
Wird es funktionieren.