嗨,我已经生成了具有流动配置的jhipster应用程序。
用于生成应用程序的.yo.rc.json文件如下
{
"generator-jhipster": {
"applicationType": "monolith",
"authenticationType": "oauth2",
"baseName": "microapp",
"blueprints": [],
"buildTool": "maven",
"cacheProvider": "ehcache",
"clientFramework": "angularX",
"clientPackageManager": "npm",
"clientTheme": "none",
"clientThemeVariant": "",
"creationTimestamp": 1659798467950,
"cypressAudit": true,
"cypressCoverage": false,
"databaseType": "no",
"devDatabaseType": "no",
"devServerPort": 4200,
"dtoSuffix": "DTO",
"enableGradleEnterprise": false,
"enableHibernateCache": false,
"enableSwaggerCodegen": false,
"enableTranslation": false,
"entitySuffix": "",
"jhiPrefix": "jhi",
"jhipsterVersion": "7.9.2",
"languages": ["en", "fr"],
"messageBroker": false,
"microfrontend": false,
"microfrontends": [],
"nativeLanguage": "en",
"otherModules": [],
"packageName": "com.labkit.microapp",
"pages": [],
"prodDatabaseType": "no",
"reactive": false,
"searchEngine": false,
"serverPort": "8080",
"serverSideOptions": [],
"serviceDiscoveryType": "no",
"skipCheckLengthOfIdentifier": false,
"skipFakeData": false,
"skipUserManagement": true,
"testFrameworks": ["cypress", "cucumber"],
"websocket": false,
"withAdminUi": true
}
}我已经生成了maven单片应用程序,我安装了多个nodejs版本,最后卸载了所有其他版本。现在我只安装了一个版本(16.0),生成后npm安装也失败了,npmw也失败了,mvnw也失败了。
我还生成了gradle构建。在gradle项目中也有同样的问题。
[INFO] npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
[INFO] npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
[INFO] npm WARN deprecated uuid@3.3.2: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
[INFO] npm WARN deprecated puppeteer@9.1.1: Version no longer supported. Upgrade to @latest
[INFO] npm ERR! code 1
[INFO] npm ERR! path V:\sagcloud\opensource\jhipster-tryout\vidhya-rocking\node_modules\pa11y\node_modules\puppeteer
[INFO] npm ERR! command failed
[INFO] npm ERR! command bash /C/Users/VDE/AppData/Local/Temp/install-34d9bb4d.sh
[INFO]
[INFO] npm ERR! A complete log of this run can be found in:
[INFO] npm ERR! C:\Users\VDE\AppData\Local\npm-cache\_logs\2022-08-14T08_16_28_997Z-debug-0.log
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 06:34 min
[INFO] Finished at: 2022-08-14T13:52:42+05:30
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.12.1:npm (npm install) on project microapp: Failed to run task: 'npm install' failed. org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException会有什么问题。请帮帮忙
发布于 2022-08-17 17:22:14
我也被困在这上面了。这两行是关键:
[INFO] npm ERR! command failed
[INFO] npm ERR! command bash /C/Users/.../AppData/Local/Temp/...解决方案:
删除在应用程序上生成的.npmrc文件,并在应用程序上再次运行npm install。解决了这个问题。
这是最近由杰普斯特团队添加的。我想他们并没有想到Windows用户。
https://stackoverflow.com/questions/73350306
复制相似问题