generator-gulp-angular2
generator-gulp-angular2 copied to clipboard
Can't install: Yeoman says "You don't seem to have a generator with the name gulp-angular2 installed"
$ yo gulp-angular2
Error gulp-angular2
You don't seem to have a generator with the name gulp-angular2 installed.
You can see available generators with npm search yeoman-generator and then install them with npm install [name].
To see the 16 registered generators run yo with the `--help` option.
$ yo --version
1.6.0
$ npm info generator-gulp-angular2
{ name: 'generator-gulp-angular2',
description: 'Yeoman generator for Angular2 + Gulp, base on angular2-seed and generator-gulp-angular',
'dist-tags': { latest: '0.1.4' },
versions: [ '0.1.0', '0.1.1', '0.1.2', '0.1.3', '0.1.4' ],
maintainers: [ 'x6doooo <[email protected]>' ],
...
@keithkml I was able to install fine. Here's my setup:
$ node -v
v5.0.0
$ which node
/Users/neil/.nvm/versions/node/v5.0.0/bin/node
$ which yo
/Users/neil/.nvm/versions/node/v5.0.0/bin/yo
$ which npm
/Users/neil/.nvm/versions/node/v5.0.0/bin/npm
Hope this helps
I had the same problem, check if you have the NODE_PATH set with
echo $NODE_PATH
If you don't, I recommend you set it up in your bash profile with whatever npm root -g gives you, adding this line in your ~/.bash_profile
export NODE_PATH=~/.nodebrew/node/v5.0.0/lib/node_modules:$NODE_PATH
I'm using nodebrew so that's my root folder but change it with whatever it is in your system.
Even better, you can do this in your bash profile:
export NODE_PATH="$(npm root -g)":$NODE_PATH
To force the system to read it again, so it is applied:
. ~/.bash_profile