jvandemo / generator-angular2-library

Yeoman generator to create an Angular library
MIT License
752 stars 122 forks source link

Having issue getting generator-angular2-library installed #179

Open playground opened 7 years ago

playground commented 7 years ago

I have reinstalled yo still can't get generator-angular2-library to installed on my mac.

I'm running npm 5.3.0

I did npm uninstall -g yo npm cache verify npm install -g yo

/Users/me/.nvm/versions/node/v7.7.2/bin/yo -> /Users/me/.nvm/versions/node/v7.7.2/lib/node_modules/yo/lib/cli.js
/Users/me/.nvm/versions/node/v7.7.2/bin/yo-complete -> /Users/me/.nvm/versions/node/v7.7.2/lib/node_modules/yo/lib/completion/index.js

> spawn-sync@1.0.15 postinstall /Users/me/.nvm/versions/node/v7.7.2/lib/node_modules/yo/node_modules/spawn-sync
> node postinstall

> yo@2.0.0 postinstall /Users/me/.nvm/versions/node/v7.7.2/lib/node_modules/yo
> yodoctor

Yeoman Doctor
Running sanity checks on your system

✔ Global configuration file is valid
✔ NODE_PATH matches the npm root
✔ Node.js version
✔ No .bowerrc file in home directory
✔ No .yo-rc.json file in home directory
✔ npm version

Everything looks all right!
+ yo@2.0.0
added 372 packages in 17.031s

npm install -g generator-angular2-library

+ generator-angular2-library@11.1.0
updated 1 package in 8.104s

However, when I try yo angular2-library

Error angular2-library 

You don't seem to have a generator with the name angular2-library installed.
You can see available generators with npm search yeoman-generator and then install them with npm install [name].
To see the 9 registered generators run yo with the `--help` option.

yo --help, shows no installation of generator-angular2-library

dougellison commented 7 years ago

I had some strange issues when I installed Yo because I didn't install with sudo.

Any chance thats the issue?

playground commented 7 years ago

I can install other generator fine, so I don't think it's sudo because I have been installing without sudo.

dougellison commented 7 years ago

What version of npm do you have? Not NodeJS.. Npm.

playground commented 7 years ago

npm 5.3.0 node 7.7.2

dougellison commented 7 years ago

If you go into /Users/me/.nvm/versions/node/v7.7.2/lib/node_modules/ do you see generator-angular2-library?

playground commented 7 years ago

Yes, it's there drwxr-xr-x 7 me staff 238 Aug 29 14:46 generator-angular2-library

dgroh commented 7 years ago

same issue here on windows

playground commented 7 years ago

@dgroh I ended up using https://github.com/edriang/ngx-library-template. It's been working out for me.