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

Upgrade a JHipster project from v4.6.1 to 4.6.2 fails #6151

Closed
batterista87 opened this issue Jul 20, 2017 · 3 comments
Closed

Upgrade a JHipster project from v4.6.1 to 4.6.2 fails #6151

batterista87 opened this issue Jul 20, 2017 · 3 comments
Milestone

Comments

@batterista87
Copy link

I'm trying to upgrade a JHipster project from version 4.6.1 to version 4.6.2 but I've this error:

C:\Users\Andrea\workspace\Z_Test01>jhipster upgrade
Executing jhipster:upgrade
Options:
Welcome to the JHipster Upgrade Sub-Generator
This will upgrade your current application codebase to the latest JHipster version
Looking for latest generator-jhipster version...
WARNING! Something went wrong fetching the latest JHipster version number...
warning package.json: No license field
warning ..\..\package.json: No license field

events.js:182
      throw er; // Unhandled 'error' event
      ^

Error: ERROR! Exiting process
    at Environment.error (C:\Users\Andrea\AppData\Local\Yarn\config\global\node_modules\yeoman-environment\lib\environment.js:140:40)
    at constructor.error (C:\Users\Andrea\AppData\Local\Yarn\config\global\node_modules\generator-jhipster\generators\generator-base.js:1610:18)
    at shelljs.exec (C:\Users\Andrea\AppData\Local\Yarn\config\global\node_modules\generator-jhipster\generators\upgrade\index.js:141:26)
    at C:\Users\Andrea\AppData\Local\Yarn\config\global\node_modules\shelljs\src\exec.js:199:9
    at ChildProcess.exithandler (child_process.js:262:7)
    at emitTwo (events.js:125:13)
    at ChildProcess.emit (events.js:213:7)
    at maybeClose (internal/child_process.js:921:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)

Any help?
Thanks

@deepu105
Copy link
Member

This ticket has been closed as the guidelines are not followed.

Tickets must follow our Guidelines, as mentioned in:

  1. our Readme file on the front page of the project,
  2. the "create a new ticket" page and
  3. our Help page

We have also created a template on the "create a new ticket" page to help you follow those guidelines.

Open a new issue with proper details or update this issue with all details and request to reopen.
Issues opened without proper details will be closed without explanation.

If you have a question please use Stack Overflow for that. Tag the question with jhipster and someone will help you out there.

This helps us to keep our issue tracker clean. Also, Stack Overflow will give your query a larger audience.

@TranQuangTienSA
Copy link
Contributor

@batterista87 There are two things you have to modify

  1. Add to your package.json: "private": true or "license": "UNLICENSED" to remove license warning.
  2. Edit file C:\Users\Andrea\AppData\Local\Yarn\config\global\node_modules\generator-jhipster\generators\upgrade\index.js change line const FIRST_CLI_SUPPORTED_VERSION = '4.5.1'; // The first version in which CLI support was added from 4.5.1 to 4.6.2

And run again jhipster upgrade --with-entities --verbose
After every thing done, it will throw an exception. Don't worry, you have to resolve conflict in package.json and run again yarn install to install dependencies

That's all, good luck.

@gmarziou
Copy link
Contributor

https://stackoverflow.com/questions/45209846/upgrade-a-jhipster-project-from-v4-6-1-to-4-6-2-fails

@jdubois jdubois modified the milestone: 4.7.0 Aug 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants