1

I'm using the ionic-cli v3.9.2 to create a project like this:

ionic start cutePuppyPics

But I'm getting the following error:

? What starter would you like to use: tutorial [INFO] Fetching app base (https://github.com/ionic-team/ionic2-app- base/archive/master.tar.gz) × Downloading - failed! Error: unable to get local issuer certificate

I am behind a corporate firewall but I've correctly configured npm and git to use the proxy already (I was able to install cordova and ionic through npm with no issues).

Any clues?

@ionic/cli-plugin-proxy : 1.4.6
@ionic/cli-utils        : 1.9.2
ionic (Ionic CLI)       : 3.9.2
B. Desai
  • 16,414
  • 5
  • 26
  • 47

2 Answers2

0

I have met the same issue. set NODE_TLS_REJECT_UNAUTHORIZED=0 solved my problem

Emon
  • 1,401
  • 14
  • 24
0

In CMD

set NODE_TLS_REJECT_UNAUTHORIZED = 0

will solve your problem. Problem is NODE_TLS_REJECT_UNAUTHORIZED is highly unsecure so you have to unable it.