【问题标题】:Not Found - GET https://registry.npmjs.org/functionscdn.azureedge.net - Not found未找到 - 获取 https://registry.npmjs.org/functionscdn.azureedge.net - 未找到
【发布时间】:2020-03-29 11:09:56
【问题描述】:

npm i -g azure-functions-core-tools@3 --unsafe-perm true --force --trusted-host aunctionscdn.azureedge.net

大家好,我一直在尝试在我的公司代理后面使用上述命令安装 azure-functions-core 工具,但返回此错误。在这方面需要一些帮助。非常感谢:

npm 错误!代码 E404
npm 错误! 404 未找到 - 获取 https://registry.npmjs.org/functionscdn.azureedge.net - 未找到
npm 错误! 404 'functionscdn.azureedge.net@latest' 不在 npm 注册表中。
npm 错误! 404你应该bug作者发布它(或自己使用名称!)

问候

【问题讨论】:

  • 这对我有用npm config set registry https://registry.npmjs.org/

标签: azure-functions azure-functions-runtime azure-functions-core-tools azure-function-app-proxy


【解决方案1】:

如果这是最简单的解决方法,您可以覆盖特定范围的注册表。例如:

npm config set @types:registry https://registry.npmjs.org/

这将告诉 npm 始终直接从 Internet 上的官方服务器获取 @types 范围的任何内容。更多详情可以参考这个issue

【讨论】:

    猜你喜欢
    • 2023-02-23
    • 2023-02-21
    • 2020-08-29
    • 2021-06-12
    • 1970-01-01
    • 2020-05-28
    • 1970-01-01
    • 2021-10-07
    相关资源
    最近更新 更多