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

Unable to create new project #48

Closed
subbu519 opened this issue Sep 20, 2019 · 16 comments
Closed

Unable to create new project #48

subbu519 opened this issue Sep 20, 2019 · 16 comments
Labels
invalid This doesn't seem right

Comments

@subbu519
Copy link

Describe the bug
Already run the command "npm install -g generator-jhipster-nodejs" but got error when run "jhipster --blueprint nodejs"

  throw er; // Unhandled 'error' event
  ^

Error: The ←[33mgenerator-jhipster-nodejs←[39m blueprint provided is not installed. Please install it using command ←[33mnpm i -g generator-jhipster-nodejs←[39m.
at Environment.error

@ghost
Copy link

ghost commented Sep 20, 2019

Hi,
thanks for the feedback!
Probably you don't have correctly installed the generator, and then you have to retry.
Please check these questions:

  1. What version of node are you using? Execute node -v... the version recommended is above 8.10.x
  2. Check if the generator is installed, executing npm list -g generator-jhipster-nodejs, it will display:

C:\Users\xxxxxxx\AppData\Roaming\npm
└── generator-jhipster-nodejs@1.0.0-alpha.2

If is not installed:

C:\Users\xxxxxxx\AppData\Roaming\npm
└──(empty)

  1. So, retry with npm i -g generator-jhipster-nodejs, if all it's ok you will see:

immagine

@subbu519
Copy link
Author

Ok, But got same Issue
Screenshot (61)

@ghost
Copy link

ghost commented Sep 20, 2019

You can switch a older version of nodejs (8.10.x)? I see that you use the 10.x.
On windows you can use nvm to choose and install various node.js version. After reinstall the generator.
Finally try to run the jhipster generator without blueprint option, in order to understand if you have some misconfiguration. Thanks

@subbu519
Copy link
Author

Still it's not working
Screenshot (64)

@ghost
Copy link

ghost commented Sep 20, 2019

Hi @subbu519 ,
the command without blueprint nodejs option is only jhipster.

After try also the development commands from CONTRIBUTING GUIDE

@subbu519
Copy link
Author

when I am using "jhipster" command it generates Java Project

@ghost
Copy link

ghost commented Sep 20, 2019

when I am using "jhipster" command it generates Java Project

Yes, there was a test to understand if jhipster standard cli is installed correctly.

@subbu519
Copy link
Author

Hi @subbu519 ,
the command without blueprint nodejs option is only jhipster.

After try also the development commands from CONTRIBUTING GUIDE

It s done when I am following this one

@subbu519
Copy link
Author

thankyou @amanganiello90

@ghost
Copy link

ghost commented Sep 20, 2019

But It's strange that the install from the npm registry not recognise that generator in the running phase. I have tested the installation in different machines, maybe you have not installed globally yeoman or some jhipster dependency packages. Thank you.

@ghost ghost closed this as completed Sep 20, 2019
@venkataramkishore
Copy link

Hi I have followed the same steps as suggested above conversation still i have the same issue:
The following are the versions in picture

image

@ghost
Copy link

ghost commented Sep 23, 2019

Hi @venkataramkishore,
In your screen there aren't any errors. It works, there is the first question on the application type.

@venkataramkishore
Copy link

I am trying to start Nodejs blueprint not Java, so according to your documentation i am expecting NHIPSTER not JHIPSTER?
Please suggest if otherwise.

@ghost
Copy link

ghost commented Sep 24, 2019

I am trying to start Nodejs blueprint not Java, so according to your documentation i am expecting NHIPSTER not JHIPSTER?
Please suggest if otherwise.

After you have answered the application type and the app name, it will display NHipster logo and the related questions. If you read your prompt, there is the INFO: options: blueprints: nodejs. So jhipster has found nodejs blueprint. It works.

@venkataramkishore
Copy link

Hi @amanganiello90 , Yes indeed it worked !!
Command also suggest using blueprints not blueprint
Should these details be updated in your documentation?
The following image is the output of command flow:

image

@ghost
Copy link

ghost commented Sep 24, 2019

Hi @venkataramkishore,
Yes, I will update after changing with the new version of the jhipster cli. Thanks

@ghost ghost added the invalid This doesn't seem right label Sep 24, 2019
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants