为什么jhipster无法更新

时间:2018-12-12 08:11:12

标签: java angularjs jhipster

我想将primng 7.0.0安装到我的Angular项目中,但是首先我需要将JHipster更新到最新版本。

-jhipster upgrade --target-version=5.7.0

当我将此命令写入终端时,出现以下错误

  

错误:ERROR!退出过程       在Environment.error(C:\ Users \ yagmur \ AppData \ Roaming \ npm \ node_modules \ generator-jhipster \ node_modules \ yeoman-environment \ lib \ environment.js:157:40)       在module.exports.error(C:\ Users \ yagmur \ AppData \ Roaming \ npm \ node_modules \ generator-jhipster \ generators \ generator-base.js:2444:18)       在gitExec(C:\ Users \ yagmur \ AppData \ Roaming \ npm \ node_modules \ generator-jhipster \ generators \ upgrade \ index.js:235:30)       在C:\ Users \ yagmur \ AppData \ Roaming \ npm \ node_modules \ generator-jhipst

     

er \ node_modules \ shelljs \ src \ exec.js:118:9       在ChildProcess.exithandler(child_process.js:285:7)       在ChildProcess.emit(events.js:182:13)       在也许关闭(internal / child_process.js:962:16)       在Process.ChildProcess._handle.onexit(internal / child_process.js:251:5)在以下位置引发“错误”事件:       在Environment.error(C:\ Users \ yagmur \ AppData \ Roaming \ npm \ node_modules \ generator-jhipster \ node_modules \ yeoman-environment \ lib \ environment.js:159:15)       在module.exports.error(C:\ Users \ yagmur \ AppData \ Roaming \ npm \ node_modules \ generator-jhipster \ generators \ generator-base.js:2444:18)       [...与原始堆栈跟踪匹配的行...]       在Process.ChildProcess._handle.onexit(internal / child_process.js:251:5)

1 个答案:

答案 0 :(得分:0)

尝试安装而不是升级?

jhipster install @5.7.0