Ich habe protractor
bis npm install -g protractor
installiert, die erfolgreich ausgeführt werden.Global installiertes NPM-Paket, das im Terminal nicht zugänglich ist
Lauf npm -g ls --depth=0
zeigt protractor
korrekt installiert.
[email protected]:~$ npm -g ls --depth=0
/home/azim/npm-global/lib
├── [email protected]
├── [email protected]
├── [email protected]
├── gener[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]
aber Winkelmesser ist im Terminal nicht zugänglich.
[email protected]:~$ protractor
protractor: command not found
Es wurde vor fein ein während der Arbeit, habe ich meine npm
und node
neuesten Versionen aktualisiert. Ich denke, danach die PATH
Variablen vermasselt. Für eine Lösung gegoogelt, aber hat nichts funktioniert. Ich möchte die derzeitige Situation nicht durcheinander bringen.
Aktuelle Pfad ist:
[email protected]:~$ echo $NODE_PATH
/usr/lib/nodejs:/usr/lib/node_modules:/usr/share/javascript:/home/azim/npm-global/lib/node_modules
Versionen:
[email protected]:~$ npm --version
2.14.12
[email protected]:~$ node --version
v4.3.1
Dank. Pfad zum Winkelmesser in 'PATH' hinzugefügt. Wie 'PATH = $ PATH:/home/azim/npm-globale/lib/node_modules/Winkelmesser/bin' und es funktioniert. –