- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我已经有一段时间没有尝试设置一个新的 Angular 应用程序了——因为我已经在一个现有的应用程序上工作了几个月。
今天,在我的 Mac 中尝试通过终端安装一个新的 Angular 应用程序时,它运行得很慢,然后导致了这个错误:
npm ERR! code ERR_TLS_CERT_ALTNAME_INVALID
npm ERR! Hostname/IP does not 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 config set strict-ssl false
并重新运行 ng new appName
如果它不起作用,请尝试运行 npm config set registry "http://registry.npmjs.org"
编辑
An earlier outage involving a DNS misconfiguration has lead to some ISPs caching npmjs.com as missing, a workaround for this is to use a third party DNS provider such as Cloudflare or Google, the affected caches should clear within the next 24 hours.
关于angular - npm 错误!代码 ERR_TLS_CERT_ALTNAME_INVALID,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52129097/
我将 nodemailer 配置为发送到 hostgator(因为我在这里学到了如何:https://stackoverflow.com/a/56291143/954986): const trans
我尝试将webpack-dev-server用作对远程测试服务器的API请求的代理(以免在本地计算机上引发繁重的Java服务器)。问题是远程服务器仅使用HTTPS。由于某种原因,尽管它可以从浏览器中正
我已经有一段时间没有尝试设置一个新的 Angular 应用程序了——因为我已经在一个现有的应用程序上工作了几个月。 今天,在我的 Mac 中尝试通过终端安装一个新的 Angular 应用程序时,它运行
尝试使用 HTTPS 向网站发送请求时,我收到以下错误:ERR_TLS_CERT_ALTNAME_INVALID 我尝试将 insecure: true 添加到我的请求负载中,但这没有任何作用,我也尝
我在 Windows (Ubuntu 18) 上运行 bash,最近切换到 Yarn,但我需要再次使用 npm 来安装 truffle,然后发现我的 npm 已经死了。我尝试重新安装 node/npm
我是一名优秀的程序员,十分优秀!