Skip to content
This repository was archived by the owner on May 21, 2025. It is now read-only.
This repository was archived by the owner on May 21, 2025. It is now read-only.

Remove "npx" from globally installed commands #61

@jb-adams

Description

@jb-adams

Can we remove the npx at the beginning of the following commands, especially since the README states to install the two dependencies globally:

npx openapi bundle -f --output ${OPENAPI_JSON_PATH} ${config.apiSpecPath}
npx openapi bundle -f --output ${OPENAPI_YAML_PATH} ${config.apiSpecPath}
npx redoc-cli bundle --output ${indexPath} ${OPENAPI_YAML_PATH} ${redocOpts}

I am making a docker image of this app, and currently some of the steps are failing when the command is run with npx at the beginning.

command: npx openapi bundle -f --output openapi.yaml service-registry.yaml
error:

npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path /usr/src/repo/package.json
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, open '/usr/src/repo/package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2020-10-28T14_44_20_262Z-debug.log

However when I just run: openapi bundle -f --output openapi.yaml service-registry.yaml the job completes successfully

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions