firebase - firebase deploy --only 功能上出现 NPM 错误的原因是什么
问题描述
我最近在尝试部署我的 firebase 功能时遇到此错误。但是,自上次成功部署以来,我没有更改任何依赖项...
✔ functions: all necessary APIs are enabled
i functions: preparing functions directory for uploading...
i functions: packaged functions (57.25 KB) for uploading
✔ functions: functions folder uploaded successfully
i functions: updating Node.js 6 function firestoreEmail(us-central1)...
i functions: updating Node.js 6 function apiMain(us-central1)...
✔ functions[apiMain(us-central1)]: Successful update operation.
⚠ functions[firestoreEmail(us-central1)]: Deployment error.
Build failed: exit status 1
npm ERR! Linux 4.4.0-133-generic
npm ERR! argv "/nodejs/bin/node" "/nodejs/bin/npm" "--global-style" "--production" "--fetch-retries=5" "--fetch-retry-factor=2" "--fetch-retry-mintimeout=1000" "install" "/workspace"
npm ERR! node v6.14.0
npm ERR! npm v3.10.10
npm ERR! Hostname/IP doesn't match certificate's altnames: "Host: registry.npmjs.org. is not in the cert's altnames: DNS:a.sni.fastly.net, DNS:a.sni.global-ssl.fastly.net"
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! /workspace/npm-debug.log
Functions deploy had errors. To continue deploying other features (such as database), run:
firebase deploy --except functions
Error: Functions did not deploy properly.
解决方案
Firebase 状态页面提到 NPM 注册表中断
推荐阅读
- haskell - Haskell 的在线平均值
- angular - 即使在令牌过期或注销后,浏览器上也不会清除 JWT 令牌
- php - 如何在 PHP FPDF 中显示十进制值?
- pandas - Pandas:将许多 id 映射到唯一 id
- undefined - TypeError:无法读取未定义的属性“allMarkdownRemark”-在盖茨比上
- jquery - 在 thymeleaf 中添加 th:each 的动态属性
- wordpress - 未捕获的异常:无效的产品。对于带有变体 ID 的新 WC_Product_Variable()
- android - 如何从 lstBook = new ArrayList<>() 设置 Android Intent.ACTION_CALL, Uri number;
- objective-c - 如何检查 NSString 语言是否匹配 NSLocaleLanguageCode
- java - ROSJAVA org.ros.internal.message 无法转换为 std_msgs.String