[英]Deploy a NodeJS app to Heroku
I've followed the getting started guide to deploy a nodejs
application to heroku: 我遵循了入门指南,将
nodejs
应用程序部署到heroku:
I reached to this stage in the tutorial 我在本教程中达到了这个阶段
When I try to write the command: 当我尝试编写命令时:
heroku create
It gives me this error: 它给了我这个错误:
UNABLE_TO_GET_ISSUER_CERT_LOCALLY: unable to get local issuer certificate
What can be the problem? 可能是什么问题?
Try to do this: 尝试这样做:
Edit Git config text file (with my favorite line-ending neutral app like Notepad++) located at: 编辑位于以下位置的Git配置文本文件(使用我最喜欢的行尾中性应用程序,如Notepad ++):
C:\Program Files (x86)\Git\etc\gitconfig
In the [http] block, add an option to disable sslVerify. 在[http]块中,添加一个选项以禁用sslVerify。 It looked like this when I was done:
完成后看起来像这样:
[http]
sslVerify = false
sslCAinfo = /bin/curl-ca-bundle.crt
The problem was that I have a web filter on my internet, A content filter and it was blocking the command 问题是我的互联网上有一个Web过滤器,一个内容过滤器,它阻止了该命令
heroku create
from going through. 从经历。
Run the following line: 运行以下行:
npm config set strict-ssl false npm config set strict-ssl false
For Windows 10: 对于Windows 10:
Go to System variable (Windows logo key > type: "environment variables" > click Environment Variables button) 转到系统变量(Windows徽标键>类型:“环境变量”>单击“环境变量”按钮)
Check/Set Variable SSL_CERT_DIR=YourCetrFolder 检查/设置变量SSL_CERT_DIR = YourCetrFolder
Certificate folder Example: 证书文件夹示例:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.