Problem installing 'redoc-cli@latest'
See original GitHub issueHi all,
trying to run redoc-cli
fails since yesterday with the below error:
internal/modules/cjs/loader.js:883
throw err;
^
Error: Cannot find module '/root/.npm/_npx/20637/lib/node_modules/redoc-cli/node_modules/@scarf/scarf/report.js'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
at Function.Module._load (internal/modules/cjs/loader.js:725:27)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
at internal/main/run_main_module.js:17:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @scarf/scarf@1.1.0 postinstall: `node ./report.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @scarf/scarf@1.1.0 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2021-02-16T09_42_01_888Z-debug.log
Install for [ 'redoc-cli@latest' ] failed with code 1
We use this command: npx redoc-cli bundle ./openapi/openapi.yaml --output ./openapi/openapi.html
Node version: node 14.15.5 x64
Do you know what we can do to fix this error?
Issue Analytics
- State:
- Created 3 years ago
- Reactions:5
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Install just redis-cli on Ubuntu, Debian, Jessie - Code with Hugo
Bad: install outdated Redis CLI version · Better: install latest Redis CLI as part of redis-server · Best: install just Redis CLI with...
Read more >Linux - Install redis-cli only - Stack Overflow
Ubuntu (tested on 14.04) has package called redis-tools which contains redis-cli among other tools. To install it type: sudo apt-get install ...
Read more >How to Get Redis CLI Without Installing Redis Server
Problem : Can't build Redis from source For those of us on Linux or macOS, building Redis from source involves having the relevant...
Read more >Install Redis on Linux
Most major Linux distributions provide packages for Redis. Install on Ubuntu/Debian. You can install recent stable versions of Redis from the official packages....
Read more >How to Install Redis: Ubuntu Tutorial (+ Configuration)
Using Redis Commands · Redis-server /path/redis. · Redis-cli – a command to run Redis CLI client · APPEND key value – append a...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Having exactly the same issue with a similar command, managed to get it to run by fixing to previous version:
npx redoc-cli@0.10.3 bundle ./openapi/openapi.yaml --output ./openapi/openapi.html
Quick temp fix for now, but workable for us atmThis is caused by npm@7 updated module resolution algorithm. We have to fix dependencies.
Please, use npm@6 if possible. We’re working on a fix.