npm ERR! request to https://registry.npmjs.org/@npmcli%2fdocs failed: cache mode is 'only-if-cached'
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 43.3k
- Forks
- 2.7k
- PR merge metrics
- No merged PRs in 30d
Description
What's going wrong?
I'm trying to install pm2 to server which haven't internet connection,i faced npm ERR! request to https://registry.npmjs.org/@npmcli%2fdocs failed: cache mode is 'only-if-cached' but no cached response is available. error when i run npm install pm2 command
How could we reproduce this issue?
I already tried --preferred-offline,cache 9999,custom registry ways but each time response was same.
Supporting information
PM2 version -> 5.3.1 OS => RHEL / online machine which i pack pm2 for send offline server => windows 10
# Run the following commands
$ pm2 report
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the reported npm install pm2 command on the offline server using the stated cache settings and package versions. Compare the behavior with the online packaging environment and use pm2 report for diagnostics; done means identifying a confirmed cause and a reproducible offline-installation path.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- cli, devops
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100