2016-09-07 88 views
0

當我嘗試在我的應用程序升級jhipster的版本,我得到以下錯誤:錯誤的jhipster:升級

[email protected]:~/workspace/NScanner$ npm list generator-jhipster 
[email protected] /home/lothrimond/workspace/NScanner 
└── [email protected] 

[email protected]:~/workspace/NScanner$ yo jhipster:upgrade 
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... 
/home/lothrimond/workspace/NScanner/node_modules/semver/semver.js:279 
    throw new TypeError('Invalid Version: ' + version); 
    ^

TypeError: Invalid Version: undefined 
    at new SemVer (/home/lothrimond/workspace/NScanner/node_modules/semver/semver.js:279:11) 
    at compare (/home/lothrimond/workspace/NScanner/node_modules/semver/semver.js:566:10) 
    at Function.lt (/home/lothrimond/workspace/NScanner/node_modules/semver/semver.js:600:10) 
    at null.<anonymous> (/home/lothrimond/workspace/NScanner/node_modules/generator-jhipster/generators/upgrade/index.js:93:28) 
    at /home/lothrimond/workspace/NScanner/node_modules/shelljs/src/exec.js:172:7 
    at ChildProcess.exithandler (child_process.js:194:7) 
    at emitTwo (events.js:87:13) 
    at ChildProcess.emit (events.js:172:7) 
    at maybeClose (internal/child_process.js:818:16) 
    at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5) 

我在做什麼錯?如果我的問題中缺少任何有用的信息,請寫下評論。

回答

0

喲:jhipster:升級只工作了3.4.0+

來源:jhipster support chat

+0

正如你可以看到我的版本的generator-jhipster是3.6.1 –