Skip to content
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

'npm link' issue with yeoman generator #33

Closed
gmarziou opened this issue Jan 8, 2015 · 4 comments
Closed

'npm link' issue with yeoman generator #33

gmarziou opened this issue Jan 8, 2015 · 4 comments

Comments

@gmarziou
Copy link

gmarziou commented Jan 8, 2015

Hello,

I was trying to use latest version of yeoman jhipster generator, this implies to run 'npm link' in the generator source directory, everything seems to work fine (link has been created) but it fails when I try to use it.

It works well when not using nvm.

Here is how to reproduce the error with Node 0.10.35 on Windows 7 64bit

git clone https://github.com/jhipster/generator-jhipster.git
cd generator-jhipster
npm link

npm install -g yo
yo jhipster
Error jhipster

You don't seem to have a generator with the name jhipster installed.
You can see available generators with npm search yeoman-generator and then insta
ll them with npm install [name].
To see the 0 registered generators run yo with the `--help` option.
@coreybutler
Copy link
Owner

This is not an NVM issue.

Since you've cloned jhipster instead of installing with npm, you also need to run npm install within the cloned directory. This is something npm does automatically, but cloning does not.

When I cloned the project and ran npm install, followed by npm link, the generator ran:

image

@gmarziou
Copy link
Author

gmarziou commented Jan 8, 2015

Thanks a lot and sorry for mis-reporting.

@gmarziou
Copy link
Author

gmarziou commented Jan 8, 2015

Your tool is great, especially because it does not require node or python to run as others do.

@coreybutler
Copy link
Owner

No worries, and I'm glad to hear you're finding it useful!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants