更新:
我使用手动步骤执行升级,它工作正常。
之后,我注意到版本4.3.0有一个新的--verbose标志,所以我用--force标志再次运行它。它仍然在yarn run webpack:build
处没有错误。
然后我自己运行了yarn webpack:build
。看起来它完成了所有操作,但没有将控制权返回到控制台。我注意到我的任务栏通知区域中有一个黄色的消息框,上面写着“JHipster' Notification Image。当我单击该通知时,作业完成并且控制权返回到控制台。 (我注意到此通知在Win10上看起来有所不同,我认为它不需要点击即可解散。)
运行jhipster时不会出现此通知:升级,所以我猜这就是挂断过程的过程。
(原帖)
我已经生成了一个jhipster项目(4.1.1)并且一直在使用它。我试图运行jhipster:升级到4.2.0但该过程永远不会完成。 (我一夜之间离开了。)
我在另一台计算机上设置并重复此过程,运行正常。
我试图找出进程挂在我的主计算机上但未成功的原因/位置。
任何人都有一些步骤,可以找出出现问题的方法吗?
我的环境:
Win7 Enterprise
java version "1.8.0_74"
git version 2.12.0.windows.1
node v6.10.2
yarn 0.21.3
命令输出:
C:\applications\jhipster\formsLib>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...
New generator-jhipster version found: 4.2.0
Git repository detected
Updating generator-jhipster to 4.2.0 . This might take some time...
几个节点进程启动并运行一段时间,但随后它们进入空闲状态。
我尝试卸载并重新安装节点和纱线。
我已启用NODE_DEBUG=cluster,net,http,fs,tls,module,timers node
并重新启用它。它停顿前的最后几行是:
NET 15272: _read
NET 15272: onread 21
NET 15272: got data
NET 15272: _read
NET 15272: onread 33
NET 15272: got data
NET 15272: _read
NET 15272: onread 73
NET 15272: got data
NET 15272: _read
过程15272是node "C:\Users\mbaxley\AppData\Local\Yarn\config\global\node_modules\.bin\\..\yo\lib\cli.js" jhipster:upgrade
在此过程中更新的唯一文件是package.json文件。以下是修改后的文件的差异:
diff --git a/package.json b/package.json
index 7a2a6b8..eb7de34 100644
--- a/package.json
+++ b/package.json
@@ -16,11 +16,11 @@
"@angular/platform-browser-dynamic": "2.4.9",
"@angular/router": "3.4.9",
"@ng-bootstrap/ng-bootstrap": "1.0.0-alpha.21",
+ "angular2-cookie": "1.2.6",
"angular2-infinite-scroll": "0.3.4",
"bootstrap": "4.0.0-alpha.6",
- "font-awesome": "4.7.0",
- "angular2-cookie": "1.2.6",
"core-js": "2.4.1",
+ "font-awesome": "4.7.0",
"jquery": "3.1.1",
"ng-jhipster": "0.1.9",
"ng2-webstorage": "1.5.1",
@@ -47,7 +47,7 @@
"exports-loader": "0.6.4",
"extract-text-webpack-plugin": "2.1.0",
"file-loader": "0.10.1",
- "generator-jhipster": "4.1.1",
+ "generator-jhipster": "4.2.0",
"html-loader": "0.4.5",
"html-webpack-plugin": "2.28.0",
"image-webpack-loader": "3.2.0",
@@ -65,9 +65,12 @@
"lazypipe": "1.0.1",
"lodash": "4.17.4",
"map-stream": "0.0.6",
+ "node-sass": "4.5.0",
"phantomjs-prebuilt": "2.1.14",
+ "postcss-loader": "1.3.0",
"proxy-middleware": "0.15.0",
"run-sequence": "1.2.2",
+ "sass-loader": "5.0.1",
"sourcemap-istanbul-instrumenter-loader": "0.2.0",
"string-replace-webpack-plugin": "0.1.3",
"style-loader": "0.14.0",
@@ -81,9 +84,6 @@
"webpack-visualizer-plugin": "0.1.11",
"write-file-webpack-plugin": "3.4.2",
"xml2js": "0.4.17",
- "sass-loader": "5.0.1",
- "node-sass": "4.5.0",
- "postcss-loader": "1.3.0",
"yargs": "6.6.0"
},
"engines": {