gpt4 book ai didi

npm - 500 内部服务器错误 : npm@latest

转载 作者:行者123 更新时间:2023-12-04 14:13:35 25 4
gpt4 key购买 nike

我的 npm 有问题我无法获得任何包。例如运行:

npm install -g npm@latest

给出:
npm ERR! code E500 npm ERR! 
500 Internal Server Error: npm@latest

如果我尝试访问 https://registry.npmjs.org/我得到:
Fastly error: unknown domain. 
Please check that this domain has been added to a service.

我查看了我的/etc/hosts 并没有错,有什么想法吗?
---------------- INFOS -----------

NodeJS : v9.2.0
npm : 6.0.1
OS : Ubuntu 16.04.4 LTS

最佳答案

下面的步骤解决了我的 npm 注册表问题。我希望同样会为你工作。

  • 尝试使用以下命令设置 npm 注册表:npm config set registry https://registry.npmjs.org/
  • curl https://registry.npmjs.org/的检查结果
  • 清除缓存:npm cache clean --force
  • 尝试运行 npm install
  • 关于npm - 500 内部服务器错误 : npm@latest,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50726539/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com