Redoc: How to install and invoke redoc-cli

Created on 31 Aug 2018  Â·  6Comments  Â·  Source: Redocly/redoc

I am trying to make use of the redoc-cli for bundling as described here: https://github.com/Rebilly/ReDoc/tree/master/cli

The following Dockerfile illustrates what I'm doing:

FROM node:10 as builder

WORKDIR /
RUN git clone --depth 1 https://github.com/Rebilly/ReDoc.git

WORKDIR /ReDoc/cli
RUN npm install
RUN npm run
RUN find / -type f -name "redoc-cli"
RUN which redoc-cli

I would expect an executable redoc-cli to be created somewhere, but there is none.

npm run only lists a ci-publish command.

I also tried npm install -g instead of npm install, which fails. See terminal output below output.

What am I missing?

As you may guess, I am not an avid NodeJS user. If I can help make the README more accessible for people like me, please let me know.


Terminal output

npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/amdefine is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/ansi-regex is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/asap is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/async is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/base64-js is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/call-me-maybe is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/camelcase is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/classnames is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/cliui/node_modules/wordwrap is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/code-point-at is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/core-js is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/css-color-keywords is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/decamelize is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/decko is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/delegate is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/dom-walk is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/dompurify is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/esprima is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/eventemitter3 is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/fast-levenshtein is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/foreach is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/format-util is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/get-caller-file is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/get-stream is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/good-listener is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/has-flag is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/hoist-non-react-statics is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/ieee754 is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/buffer is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/invert-kv is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/is-buffer is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/is-fullwidth-code-point is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/is-stream is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/isexe is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/js-tokens is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/json-pointer is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/kind-of is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/lazy-cache is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/lcid is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/longest is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/loose-envify is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/lunr is not a child of /usr/local/lib
npm WARN rollback Rolling back mark.[email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/mark.js is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/marked is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/memoize-one is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/mimic-fn is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/mem is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/min-document is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/minimist is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/mkdirp/node_modules/minimist is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/ms is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/debug is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/number-is-nan is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/object-assign is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/ono is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/openapi-sampler is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/p-finally is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/p-try is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/p-limit is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/p-locate is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/path-exists is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/locate-path is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/find-up is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/path-key is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/npm-run-path is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/perfect-scrollbar is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/polished is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/postcss-value-parser is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/process is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/global is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/promise is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/prop-types is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/pseudomap is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/react-dropdown is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/react-is is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/react-lifecycles-compat is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/mobx-react is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/react-tabs is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/repeat-string is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/align-text is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/center-align is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/require-directory is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/require-main-filename is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/right-align is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/cliui is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/safer-buffer is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/iconv-lite is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/encoding is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/node-fetch is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/select is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/set-blocking is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/setimmediate is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/shallowequal is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/react-hot-loader is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/shebang-regex is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/shebang-command is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/signal-exit is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/slugify is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/source-map is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/sprintf-js is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/argparse is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/js-yaml is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/json-schema-ref-parser is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/stickyfill is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/strip-ansi is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/string-width is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/strip-eof is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/stylis is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/stylis-rule-sheet is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/supports-color is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/tiny-emitter is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/clipboard is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/prismjs is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/tslib is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/ua-parser-js is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/uglify-js/node_modules/source-map is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/uglify-to-browserify is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/whatwg-fetch is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/isomorphic-fetch is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/fbjs is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/css-to-react-native is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/styled-components is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/which is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/which-module is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/window-size is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/uglify-js/node_modules/yargs is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/uglify-js is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/wordwrap is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/optimist is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/wrap-ansi/node_modules/ansi-regex is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/wrap-ansi/node_modules/is-fullwidth-code-point is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/wrap-ansi/node_modules/strip-ansi is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/wrap-ansi/node_modules/string-width is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/wrap-ansi is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/xregexp is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/y18n is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/yallist is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/lru-cache is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/cross-spawn is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/execa is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/os-locale is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/yargs-parser/node_modules/camelcase is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/yargs-parser is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/yargs/node_modules/cliui is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/yargs/node_modules/decamelize is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/handlebars is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/isarray is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/mkdirp is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/mobx is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/react is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/react-dom is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/redoc is not a child of /usr/local/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /ReDoc/cli/node_modules/yargs is not a child of /usr/local/lib
npm ERR! path /usr/local/lib/node_modules/redoc-cli/index.js
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall chmod
npm ERR! enoent ENOENT: no such file or directory, chmod '/usr/local/lib/node_modules/redoc-cli/index.js'
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/2018-08-31T10_31_32_716Z-debug.log

Most helpful comment

➜ npm -v
5.6.0

➜ npm install redoc

➜ npx redoc-cli serve swagger.yaml
Server started: http://127.0.0.1:8080
GET /: 42.262ms

All 6 comments

➜ npm -v
5.6.0

➜ npm install redoc

➜ npx redoc-cli serve swagger.yaml
Server started: http://127.0.0.1:8080
GET /: 42.262ms

Thanks, that helped!

➜ npx redoc-cli serve swagger.yaml
Server started: http://127.0.0.1:8080
Can you show me how to change port server started guys?

➜ npx redoc-cli serve swagger.yaml
Server started: http://127.0.0.1:8080
Can you show me how to change port server started guys?

There's the --port argument:

➜ npx redoc-cli serve swagger.yaml
Server started: http://127.0.0.1:8080
Can you show me how to change port server started guys?

npx redoc-cli serve --help gives you set of arguments to use with serve option,
pay attention to the port syntax -p, --port [number] [default: 8080]

➜ npx redoc-cli serve swagger.yaml
Server started: http://127.0.0.1:8080
Can you show me how to change port server started guys?

npx redoc-cli serve --help gives you set of arguments to use with serve option,
pay attention to the port syntax -p, --port [number] [default: 8080]

thanks alots guys

Was this page helpful?
0 / 5 - 0 ratings