Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
240 views
in Technique[技术] by (71.8m points)

npm - Error on jhipster:upgrade

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

yo:jhipster:upgrade is working only for 3.4.0+

Source: jhipster support chat


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...