错误 npm install 没有可用于 https-proxy-agent-snyk-fork 的有效版本

ERROR npm install No valid versions available for https-proxy-agent-snyk-fork

运行 用于部署目的的 npm 安装,我收到以下错误

+ npm install
npm ERR! code ENOVERSIONS
npm ERR! No valid versions available for https-proxy-agent-snyk-fork

日志文件包含以下日志

http fetch GET 200 http://registry.npmjs.org/https-proxy-agent-snyk-fork 1115ms
8 silly fetchPackageMetaData error for https-proxy-agent-snyk-fork@latest No valid versions available for https-proxy-agent-snyk-fork
9 timing stage:rollbackFailedOptional Completed in 1ms
10 timing stage:runTopLevelLifecycles Completed in 2485ms
11 verbose type tag
12 verbose stack https-proxy-agent-snyk-fork: No valid versions available for https-proxy-agent-snyk-fork

需要一些见解,它在一周前工作正常,我也没有更改 package.json。

我检查了 https-proxy-agent-snyk-fork 的目录 使用

npm ls https-proxy-agent-snyk-fork

并找到

`-- snyk@1.234.2
  `-- proxy-agent@3.1.0
    +-- https-proxy-agent-snyk-fork@2.2.2-fixed-mitm-vuln  (git://github.com/snyk/node-https-proxy-agent.git#5e86ccb682d0c833c8daa25ee6f91c670161cd66)
    `-- pac-proxy-agent@3.0.0 (git://github.com/snyk/node-pac-proxy-agent.git#e962ea0fe8db650a55e349e1b422e3ac99bfe451)
      `-- https-proxy-agent-snyk-fork@2.2.2-fixed-mitm-vuln  deduped (git://github.com/snyk/node-https-proxy-agent.git#5e86ccb682d0c833c8daa25ee6f91c670161cd66)

我更新了 root 的版本,这里是 snyk 并且 我还从

更新了我的 docker 部署脚本
npm install

npm install --global copy
npm install

这为我解决了问题。