1

运行 npm install 进行部署,我收到以下错误

+ 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。

4

1 回答 1

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)

我在这里更新了 snyk 的根版本,我还更新了我的 docker 脚本以从

npm install

npm install --global copy
npm install

这为我解决了这个问题。

于 2019-10-15T13:11:16.990 回答