-
-
Notifications
You must be signed in to change notification settings - Fork 398
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generators installed while using NVM are not showing in Yo generators list #406
Comments
|
appears to be:
|
I'm having the same problem, I'm setting NODE_PATH to my nvm node_modules dir as a temp fix. |
Having problems even with NODE_PATH being set:
I've tried with node versions 4 and 5 also, with the same result. |
Try updating yo |
In my case I've resolve removing $ nvm use system
$ sudo npm uninstall yo -g
$ nvm use 4
$ npm i yo -g |
Yeoman Doctor ✔ Global configuration file is valid We found a undefined file in your home directory. This can cause To delete the file, run: rm ~/.bowerrc ✖ No .yo-rc.json file in home directory Found a NaN file in your home directory. Delete it otherwise To delete the file, run: rm ~/.yo-rc.json ✔ npm version Found potential issues on your machine :( |
Just adding a comment here in case anyone comes to this page and doesn't find the solution above. The reason I had issues on my machine was because I first installed node using homebrew, then I installed yo through homebrew node, then I switched to nvm and uninstalled homebrew node. Unfortunately this left the brew installed yo and node_modules in my PATH. I probably could have just altered my PATH, but instead I decided to just delete the unneeded yo and node_modules. rm /usr/local/bin/yo |
Node Version: v4.2.4 (set via NVM)
NPM Version: v3.5.4 (set via NVM)
Yo version: 1.5.1
OS: OSX 10.11.2
I use NVM to hop between Node versions. My system Node version is 0.12.9, and I've installed 4.2.4 through NVM.
When I try to install a generator in 4.2.4 (for example,
npm install -g generator-react-webpack
), the generator appears to download and install correctly, however when I then try to use it viayo react-webpack
, I get the message:when I run plain old
yo
, thereact-webpack
generator is not listed.Here's some debug info (executed in project root):
running
npm -g root
Here is the output of
yo doctor
:any ideas?
The text was updated successfully, but these errors were encountered: