question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Problem installing 'redoc-cli@latest'

See original GitHub issue

Hi 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:closed
  • Created 3 years ago
  • Reactions:5
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
Dextorrcommented, Feb 16, 2021

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 atm

2reactions
RomanHotsiycommented, Feb 28, 2021

This 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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found