jhipster在npm安装puppeteer时运行失败/mvnw



hi我已经生成了具有流动配置的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.16.0(,在第二代之后,npm安装也失败了,npmw也失败了。

我还生成了gradle build。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:sagcloudopensourcejhipster-tryoutvidhya-rockingnode_modulespa11ynode_modulespuppeteer
[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:UsersVDEAppDataLocalnpm-cache_logs2022-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

可能是什么问题。请帮助

我也陷入了困境。这两条线是关键:

[INFO] npm ERR! command failed
[INFO] npm ERR! command bash /C/Users/.../AppData/Local/Temp/...

解决方案:

正在删除应用程序上生成的.npmrc文件,并在应用程序上再次运行npm install。这解决了问题。

这是Jhipster团队最近添加的。我想他们没有考虑到Windows用户。

最新更新