Closed silvenon closed 10 years ago
yo thinks everything is fine:
`$ yo doctor`
[Yeoman Doctor] Everything looks alright!
I also found out that generators which yo can use do not seem to be installed here.
$ npm ls -g | grep generator-
├─┬ generator-angular@0.7.1
├─┬ generator-karma@0.6.0
├─┬ generator-mocha@0.1.3
├─┬ generator-webapp@0.4.7
Maybe I screwed it up when I first updated npm when that certificate error occurred in this way:
$ npm config set ca ""
$ npm install -g npm
Then later I did:
$ brew upgrade node
Ok, I think I spammed you with enough info :)
The issue is you have two location where your global node_modules/
. That shouldn't be the case.
You probably broke something sometime with NPM. Tidy you setup and make sure it install to /usr/local/lib/node_modules/
. Otherwise you could add the second node_modules/ location to your NODE_PATH. But you'd be better cleaning your NPM config - note you may have downloaded a bugged npm release...
I completely reinstalled everything and it works fine. Not sure what happened, I probably downloaded a bugged npm release. Thanks for your help :)
I know a similar issue has occurred a few [times]() before, but most of them are either Windows related or 8 months old :D I'm on OS X and I'm using latest versions:
When I was trying to re-install generator-webapp, I noticed
yo
wasn't picking it up anymore. (I tried with generator-angular too, same thing.)There's no Webapp. The weird thing is also that
yo assemble
doesn't work at some point here, butyo assemble:app
worked. This changed when I ranbrew update && brew upgrade node && npm install --force -g yo generator-webapp
(also tried withnpm cache clean
). But yo still didn't manage to pick up Webapp, the--help
output was the same, but now stuff likeyo assemble
worked.I don't have
$NODE_PATH
set up, only this:I was exploring where my generators are located, the I found two places.
Also, if it's of any use: