10up / generator-wp-make

A Yeoman generator for making WordPress things
184 stars 42 forks source link

Yeoman can't see generator after installing #98

Closed chanceymathews closed 8 years ago

chanceymathews commented 8 years ago

Hello,

Yeoman can't see generator-wp-make after I install it.

Apologies in advance if I'm missing something obvious. I'm new to Yeoman and not sure where to start with debugging it. That said, other generators installed the same way work fine, so it seems to be something specific to this one.

I installed two different ways:

The result of the following checks is the same with either installation method.

First, I checked I had the latest versions of everything:

ubuntu version 14.04
node version 6.7.0
npm version 3.10.8
yo version 1.8.5
generator-wp-make version 1.0.0

Then, I checked if Yeoman could see it:

$ yo --generators
Available Generators:

  Couldn't find any generators, did you install any? Troubleshoot issues by running

  $ yo doctor

yo doctor reported that everything is fine. I checked my $NODE_PATH to make sure node_modules was there and then checked node_modules to make sure the generator was there.

$ echo $NODE_PATH  
/usr/lib/nodejs:/usr/lib/node_modules:/usr/share/javascript

ls $(npm config get prefix)/lib/node_modules
generator-wp-make  
grunt-cli  
grunt-cssjanus  
grunt-rtlcss  
grunt-sass  
npm  
npm-check-updates  
yo

I tried installing other generators from npm (e.g. npm install -g generator-angular) and those work as expected.

Any suggestions on what I should check next?

Thank you!

chanceymathews commented 8 years ago

@lkwdwrd helped me with this. Looks like I am supposed to use the master version (0.4.0), and I must have done something weird to end up with 1.0.0 when I tried to install it from the npm repo. In the end: user error. :-)