Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Readme expresses nuke-api as a setup function but raises error when executed #15

Open
Marsh-James opened this issue Sep 24, 2021 · 0 comments

Comments

@Marsh-James
Copy link

I see the gen/api file is populated already, when trying to run nuke-api I encounter an exception. Perhaps this has depreciated? Would someone provide clarification if this command is still needed?

The error I have is the following:

james@debian:~/repos/sif-sdk-sandbox/ClientSDK$ npm run nuke-api
Debugger attached.

> nuke-api
> rm -rf gen/api-next && openapi-generator-cli generate -i swagger.yaml -g typescript-axios -o gen/api-next --config api.json && rm -rf gen/api && mv gen/api-next gen/api && cd gen/api && npm install && npm run build

Debugger attached.
(node:10570) UnhandledPromiseRejectionWarning: Error: /bin/sh: 1: java: not found

    at /home/james/repos/sif-sdk-sandbox/ClientSDK/node_modules/@openapitools/openapi-generator-cli/main.js:621: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:676:12)
(node:10570) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:10570) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Waiting for the debugger to disconnect...
mv: cannot stat 'gen/api-next': No such file or directory
npm ERR! code 1
npm ERR! path /home/james/repos/sif-sdk-sandbox/ClientSDK
npm ERR! command failed
npm ERR! command sh -c rm -rf gen/api-next && openapi-generator-cli generate -i swagger.yaml -g typescript-axios -o gen/api-next --config api.json && rm -rf gen/api && mv gen/api-next gen/api && cd gen/api && npm install && npm run build

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/james/.npm/_logs/2021-09-24T15_28_44_841Z-debug.log
Waiting for the debugger to disconnect...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant