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

时间:2019-10-10 14:41:29

标签: node.js npm build npm-install snyk

运行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。

1 个答案:

答案 0 :(得分:1)

我在目录中检查了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)

我在这里更新了根目录的版本, 我还更新了docker脚本,以便从以下位置进行部署

npm install

npm install --global copy
npm install

哪个为我解决了这个问题。