Monday, 29 May 2017

Can't find path to yo executable

So I can't run yo. I get

-bash: yo: command not found

when I type it. I know that I can just run it by setting the path in my `bash_profile to my executable. My problem is I can't even find the path to yo.

I installed yo using

npm install -y -g yo 

and I got what's in the images below.

I believed it to be in the module

/usr/local/lib/node_modules/npm` 

That has a link called yo to

../lib/node_modules/yo/lib/cli.js

But when I type yo I still get the command not found error. I tried

sudo find / -name yo

and got the following directories:

enter image description here

But I tried in each of them and yo still won't run.

Question is where is the directory where I can type yo and it will run?

Below is result of installing yo



via jimboweb

No comments:

Post a Comment