Gizra / generator-hedley

Scaffold a headless Drupal backend, Angular app client, and Behat tests
http://www.gizra.com/content/yo-hedley
98 stars 20 forks source link

npm WARN generator-hedley@0.2.0 requires a peer of yo@>=1.0.0 but none was installed. #84

Open alesrebec opened 8 years ago

alesrebec commented 8 years ago

If you get this error, even with yo 1.6.0 installed, try installing yo and hedley together ("npm install -g yo generator-hedley"). It helped me pass that unnecessary UNMET PEER DEPENDENCY issue after "npm install -g generator-hedley" command.

amitaibu commented 8 years ago

Thanks @alesrebec - care to provide a PR? :)

clemens-tolboom commented 8 years ago

I get the same error

└── UNMET PEER DEPENDENCY yo@>=1.0.0

% yo --version                   
1.7.0

so what fix could I create? Reading https://github.com/yeoman/generator-angular/issues/1192 makes not much sense to me either. There is a /usr/local/lib/node_modules/generator-hedley installed even with this unmet dependency.

amitaibu commented 8 years ago

I was thinking maybe something like this?

clemens-tolboom commented 8 years ago

Weird fix as I did

 6255  yo # No yo
 6256  npm install -g yo # got version 1.7.0
 6257  npm install -g generator-hedley
 6258  yo --version

but if that works fine with me :-)

gardon commented 7 years ago

Just wanted to add that it also affected me Today. Had yo-2.0.0 already installed and still got the error. The workaround from the first comment here fixed as well.