When I try to upgrade version of jhipster in my application I get following error:
lothrimond@lothrimond-K53SD:~/workspace/NScanner$ npm list generator-jhipster
[email protected] /home/lothrimond/workspace/NScanner
└── [email protected]
lothrimond@lothrimond-K53SD:~/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)
What am I doing wrong? Please write down in comment if any useful information is missing in my question.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…