我想测试您的项目,所以我按照此处列出的说明进行操作:
最后一步:
yo jhipster
我收到错误:
[08:23:27] Using gulpfile ~/dev/jhipster/itishipster/gulpfile.js
[08:23:27] Starting 'install'...
[08:23:27] Starting 'inject:test'...
[08:23:27] 'inject:test' errored after 11 ms
[08:23:27] Error: Bower components directory does not exist at /Users/ted/dev/jhipster/itishipster/src/main/webapp/bower_components
at Error (native)
at module.exports (/Users/ted/dev/jhipster/itishipster/node_modules/main-bower-files/lib/index.js:76:17)
at Gulp.<anonymous> (/Users/ted/dev/jhipster/itishipster/gulpfile.js:130:31)
at module.exports (/Users/ted/dev/jhipster/itishipster/node_modules/orchestrator/lib/runTask.js:34:7)
at Gulp.Orchestrator._runTask (/Users/ted/dev/jhipster/itishipster/node_modules/orchestrator/index.js:273:3)
at Gulp.Orchestrator._runStep (/Users/ted/dev/jhipster/itishipster/node_modules/orchestrator/index.js:214:10)
at Gulp.Orchestrator.start (/Users/ted/dev/jhipster/itishipster/node_modules/orchestrator/index.js:134:8)
at runNextSet (/Users/ted/dev/jhipster/itishipster/node_modules/run-sequence/index.js:88:16)
at runSequence (/Users/ted/dev/jhipster/itishipster/node_modules/run-sequence/index.js:99:2)
at Gulp.<anonymous> (/Users/ted/dev/jhipster/itishipster/gulpfile.js:234:5)
at module.exports (/Users/ted/dev/jhipster/itishipster/node_modules/orchestrator/lib/runTask.js:34:7)
at Gulp.Orchestrator._runTask (/Users/ted/dev/jhipster/itishipster/node_modules/orchestrator/index.js:273:3)
at Gulp.Orchestrator._runStep (/Users/ted/dev/jhipster/itishipster/node_modules/orchestrator/index.js:214:10)
at Gulp.Orchestrator.start (/Users/ted/dev/jhipster/itishipster/node_modules/orchestrator/index.js:134:8)
at /usr/local/lib/node_modules/gulp/bin/gulp.js:129:20
at nextTickCallbackWith0Args (node.js:420:9)
[08:23:27] Error in plugin 'run-sequence'
Message:
An error occured in task 'inject:test'.
[08:23:27] Finished 'install' after 16 ms
我尝试使用maven命令启动项目:
./mvnw
控制台似乎没问题,但我收到错误页面: “发生了错误:-(”
对这个问题有什么想法吗?
答案 0 :(得分:2)
是很多想法:我已经在&#34;中发现了所有错误: - (&#34;页面,你应该阅读它。
答案 1 :(得分:1)
我会在这里编写一些命令,尝试在开始新项目之前执行它,(之前你必须安装node.js)
答案 2 :(得分:0)
我也收到了这个错误。以下是我为收到此错误所做的工作:
mkdir example-jhispster
cd example-jhipster
yo jhipster
mvn spring-boot:run
之后,我将项目文件夹从example-jhipster
重命名为example-jhipster2
。
但我没有终止运行实例。
从另一个终端窗口我重复上述步骤并得到了相同的错误。
简而言之,您可能正在从另一个终端窗口运行另一个实例。关闭正在运行的实例,然后重试。