Unitech / Unitech/pm2

npm ERR! request to https://registry.npmjs.org/@npmcli%2fdocs failed: cache mode is 'only-if-cached'

Open
#5,752 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.