简体   繁体   中英

Deploy a NodeJS app to Heroku

I've followed the getting started guide to deploy a nodejs application to 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:

C:\Program Files (x86)\Git\etc\gitconfig

In the [http] block, add an option to disable sslVerify. It looked like this when I was done:

[http]
sslVerify = false
sslCAinfo = /bin/curl-ca-bundle.crt

The answer is related to this

The problem was that I have a web filter on my internet, A content filter and it was blocking the command

heroku create  

from going through.

Run the following line:

npm config set strict-ssl false

For Windows 10:

Go to System variable (Windows logo key > type: "environment variables" > click Environment Variables button)

Check/Set Variable SSL_CERT_DIR=YourCetrFolder

在此处输入图片说明

Certificate folder Example:

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM