在Azure上NPM SELF_SIGNED_CERT_IN_CHAIN [英] Npm SELF_SIGNED_CERT_IN_CHAIN on Azure

查看:164
本文介绍了在Azure上NPM SELF_SIGNED_CERT_IN_CHAIN的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于从故宫昨日更改不再支持自签名的证书,我可以不再在Windows Azure上运行的NPM安装的软件包。

since yesterday changes from the npm to no longer support self signed certs i can no longer install any packages from npm running on windows azure.

在我的本地机器我可以通过应用解决这个问题官方补丁。
我无法找到一个方法来解决我的网站实例的问题。有任何想法吗?

On my local machine i could solve the issue by applying this official fix. I couldn't find a way to fix the problem on my site instance. Any ideas?

推荐答案

直到我们在Azure上更新NPM,一种简单的方法来解决,这是创建一个自定义部署脚本(信息的这里)。

Until we update NPM on Azure, one simple way to work around this is to create a custom deployment script (info here).

下面是一个演示定制什么样本回购:<一href=\"https://github.com/davidebbo-test/AzureNpmCertWorkaround\">https://github.com/davidebbo-test/AzureNpmCertWorkaround.详细的,请看<一个href=\"https://github.com/davidebbo-test/AzureNpmCertWorkaround/commit/9008fb1fecd9b207c2899a79a5ebc4fa0e4eb16c\">this提交,它使用 NPM配置设置CA,解决方法。

Here is a sample repo that demonstrates what to customize: https://github.com/davidebbo-test/AzureNpmCertWorkaround. Specifically, look at this commit, which uses the npm config set ca "" workaround.

如果你不想处理生成使用Azure的工具自定义部署脚本,你可以简单地抓住 .deployment deploy.cmd 从测试回购,并承诺回购你的根。

If you don't want to deal with generating a custom deployment script using the Azure tool, you can simply grab the .deployment and the deploy.cmd from the test repo, and commit them to the root of your repo.

这篇关于在Azure上NPM SELF_SIGNED_CERT_IN_CHAIN的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆