app-generator / full-stack-generator

OpenApi Generator - Flexible Full-stack (backend, frontend) Solution | AppSeed
https://appseed.us
MIT License
12 stars 3 forks source link

`yarn generate:app` fails with "Error: 'java' is not recognized" #2

Closed app-generator closed 3 years ago

app-generator commented 3 years ago

Please advise regarding the JDK/JRE dependency.

Full Error Log

PS D:\work\repo-api-servers\fullstack-openapi-generator> yarn generate:api
yarn run v1.22.5
$ openapi-generator-cli generate -g typescript-fetch -i api-bundle.yaml -o ./packages/generated --additional-properties=typescriptThreePlus=true,withInterfaces=true && tsc --project tsconfig.openapi.json
Download 5.1.1 ...
Downloaded 5.1.1
(node:34216) UnhandledPromiseRejectionWarning: Error: 'java' is not recognized as an internal or external command,
operable program or batch file.

    at D:\work\repo-api-servers\fullstack-openapi-generator\node_modules\@openapitools\openapi-generator-cli\main.js:636:32
    at ChildProcess.exithandler (child_process.js:315:5)
    at ChildProcess.emit (events.js:314:20)
    at maybeClose (internal/child_process.js:1022:16)
    at Socket.<anonymous> (internal/child_process.js:444:11)
    at Socket.emit (events.js:314:20)
    at Pipe.<anonymous> (net.js:675:12)

deroude commented 3 years ago

Added section in README.md to provide docker alternative for generating code from OpenAPI

app-generator commented 3 years ago

Ty @deroude!