2016-07-03 14 views
0

Ich habe ein Problem beim Zugriff auf Yeoman, nachdem ich es auf einer neuen Homestead-Installation installiert habe. Alles scheint gut während der Installation nach npm install -g yo und yo doctor läuft gut und findet kein Problem während der Installation. Nachdem ich yeoman installiert habe, ist yo: command not found die Fehlermeldung, die ich auf meiner VM erhalte.Befehl nicht gefunden

[email protected]:~$ npm install -g yo 
npm WARN deprecated [email protected]: this package has been reintegrated into npm and is now out of date with respect to npm 
/home/vagrant/.node/bin/yo -> /home/vagrant/.node/lib/node_modules/yo/lib/cli.js 
/home/vagrant/.node/bin/yo-complete -> /home/vagrant/.node/lib/node_modules/yo/lib/completion/index.js 

> [email protected] postinstall /home/vagrant/.node/lib/node_modules/yo/node_modules/spawn-sync 
> node postinstall 


> [email protected] postinstall /home/vagrant/.node/lib/node_modules/yo 
> yodoctor 


Yeoman Doctor 
Running sanity checks on your system 

✔ Global configuration file is valid 
✔ Node.js version 
✔ No .bowerrc file in home directory 
✔ No .yo-rc.json file in home directory 
✔ npm version 
✔ NODE_PATH matches the npm root 

Everything looks all right! 
/home/vagrant/.node/lib 
└─┬ [email protected] 
    ├── [email protected] 
    ├─┬ [email protected] 
    │ ├── [email protected] 
    │ ├── [email protected] 
    │ ├── [email protected] 
    │ ├── [email protected] 
    │ └── [email protected] 
    ├── [email protected] 
[[REMOVED FOR READABILITY]] 
    └─┬ [email protected] 
    ├── [email protected] 
    ├── [email protected] 
    ├─┬ [email protected] 
    │ ├── [email protected] 
    │ └── [email protected] 
    └── [email protected] 

[email protected]:~$ yo 
yo: command not found 

Mein Weg in ~/.bashrc sagt der folgende: PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/home/vagrant/.node/lib

Gibt es noch etwas, dass ich hier bin fehlt, dass dies verursachen könnte?

+0

Haben Sie versucht, '/ home/vagrant/.node/bin' dem Pfad hinzuzufügen? – ldg

+0

@ldg: das wars! Wenn Sie meine Frage beantworten wollen, werde ich Ihnen die Antwort gutschreiben. Danke, dass du es aufgezeigt hast. Ich verlor meine Murmeln. –

Antwort

1

Fügen Sie /home/vagrant/.node/bin zu Ihrem Pfad hinzu. :)