-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Open
Labels
Description
Overview of the issue
Use https://start.jhipster.tech/generate-application to generate a Gateway. You get a project with a similar yo-rc file:
{
"generator-jhipster": {
"applicationType": "gateway",
"authenticationType": "oauth2",
"baseName": "gateway",
"blueprints": [],
"buildTool": "maven",
"cacheProvider": "hazelcast",
"clientFramework": "angular",
"clientPackageManager": "npm",
"creationTimestamp": 1757680168395,
"databaseType": "sql",
"devDatabaseType": "postgresql",
"enableHibernateCache": true,
"enableSwaggerCodegen": false,
"enableTranslation": false,
"entities": [],
"gitCompany": "",
"iaCTools": ["bicep", "terraform"],
"jhiPrefix": "jhi",
"jhipsterVersion": "8.11.0",
"jwtSecretKey": "NTM1ZWE0MTFkMDZhMzU3Yzg0YjAwOGVjYzRmNmNjMjMxOGM5MTM0NWJmNThlMTI3ZGM3NGExMWVjYmNhMWYwOTkwMTBhZWM0M2Y1NTA2OTU3MWE4ZGRjOGViOGI4NGI4N2E0NDM4YWIxZmM1OGNlZjZiYmEyNjZhYWRmOGYxNDY=",
"languages": ["en"],
"messageBroker": false,
"nativeLanguage": "en",
"packageFolder": "gateway",
"packageName": "gateway",
"prodDatabaseType": "postgresql",
"reactive": true,
"searchEngine": false,
"serverPort": 8081,
"serviceDiscoveryType": "eureka",
"skipUserManagement": true,
"testFrameworks": [],
"useSass": true,
"websocket": false,
"withAdminUi": true
}
}
Then when I try to compile it with ./mvnw
or do ./npmw install
, I get errors of the like:
Using node installed locally v22.15.0
Using npm installed locally 11.3.0
npm error code MODULE_NOT_FOUND
npm error Cannot find module 'minipass-pipeline'
npm error Require stack:
npm error - /home/guillaume/Téléchargements/gateway/node_modules/cacache/lib/content/read.js
npm error - /home/guillaume/Téléchargements/gateway/node_modules/cacache/lib/get.js
npm error - /home/guillaume/Téléchargements/gateway/node_modules/cacache/lib/index.js
npm error - /home/guillaume/Téléchargements/gateway/node_modules/make-fetch-happen/lib/cache/entry.js
npm error - /home/guillaume/Téléchargements/gateway/node_modules/make-fetch-happen/lib/cache/index.js
npm error - /home/guillaume/Téléchargements/gateway/node_modules/make-fetch-happen/lib/fetch.js
npm error - /home/guillaume/Téléchargements/gateway/node_modules/make-fetch-happen/lib/index.js
npm error - /home/guillaume/Téléchargements/gateway/node_modules/npm-registry-fetch/lib/index.js
npm error - /home/guillaume/Téléchargements/gateway/target/node/node_modules/npm/node_modules/@npmcli/arborist/lib/audit-report.js
npm error - /home/guillaume/Téléchargements/gateway/target/node/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/index.js
npm error - /home/guillaume/Téléchargements/gateway/target/node/node_modules/npm/node_modules/@npmcli/arborist/lib/index.js
npm error - /home/guillaume/Téléchargements/gateway/target/node/node_modules/npm/node_modules/libnpmfund/lib/index.js
npm error - /home/guillaume/Téléchargements/gateway/target/node/node_modules/npm/lib/utils/reify-output.js
npm error - /home/guillaume/Téléchargements/gateway/target/node/node_modules/npm/lib/utils/reify-finish.js
npm error - /home/guillaume/Téléchargements/gateway/target/node/node_modules/npm/lib/commands/install.js
npm error - /home/guillaume/Téléchargements/gateway/target/node/node_modules/npm/lib/npm.js
npm error - /home/guillaume/Téléchargements/gateway/target/node/node_modules/npm/lib/cli/entry.js
npm error - /home/guillaume/Téléchargements/gateway/target/node/node_modules/npm/lib/cli.js
npm error - /home/guillaume/Téléchargements/gateway/target/node/node_modules/npm/bin/npm-cli.js
npm error A complete log of this run can be found in: /home/guillaume/.npm/_logs/2025-09-16T15_40_40_539Z-debug-0.log
Multiple runs yield similar errors for various modules.
Motivation for or Use Case
https://start.jhipster.tech/generate-application should generate applications that work out of the zip.
Reproduce the error
Use previous url to set up a gateway project with similar components (I tried with React and had the same errors), then follow the README.md to compile or to simply do a "npmw install" and you should see a similar error.
An npm install
does work, but then it fails with a similar MODULE_NOT_FOUND error on npm run start
.
Related issues
Suggest a Fix
JHipster Version(s)
Browsers and Operating System
- Tickets opened without reproduction steps or that doesn't follows the template recommendation will be closed.
- This issue is prompt-related or an error that prevents JHipster from generating an application.
- I don't have a JDL otherwise I should open an JDL Issue
- The application is not successfully generated otherwise, I should open an Issue with jhipster info
- Checking this box is mandatory (this is just to show you read everything)