在jhipster升级期间出错

时间:2017-10-11 08:49:12

标签: node.js gulp upgrade jhipster

我想将我的jhipster版本从4.8.2升级到4.9.0。

当我启动updgrade时,我有这个错误:

C:\Users\VLR\AppData\Local\Yarn\config\global\node_modules\semver\semver.js:279
throw new TypeError('Invalid Version: ' + version);
^
TypeError: Invalid Version: undefined
at new SemVer (C:\Users\VLR\AppData\Local\Yarn\config\global\node_modules\semver\semver.js:279:11)
at compare (C:\Users\VLR\AppData\Local\Yarn\config\global\node_modules\semver\semver.js:566:10)
at Function.lt (C:\Users\VLR\AppData\Local\Yarn\config\global\node_modules\semver\semver.js:600:10)
at shelljs.exec (C:\Users\VLR\AppData\Local\Yarn\config\global\node_modules\generator-jhipster\generators\upgrade\index.js:152:28)
at C:\Users\VLR\AppData\Local\Yarn\config\global\node_modules\shelljs\src\exec.js:199:9
at ChildProcess.exithandler (child_process.js:189:7)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:891:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)`

我使用的是Windows 10 Pro,其解决方案版本为:

  • npm:3.10.10
  • node:V6.11.2
  • gulp:CLI 3.9.1
  • 纱线:0.27.5

你有解决这个错误的想法吗?

由于

1 个答案:

答案 0 :(得分:0)

我理解我的问题 我必须在jhipster项目中进行升级才有效!!