1

While issuing the below command (to start a new ionic2 project),

ionic start ionic-tabs-app tabs --type=ionic-angular

I receive the below error message,

[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

Can anyone faced such issue?. How can we overcome this issue?

David R
  • 14,711
  • 7
  • 54
  • 72
  • maybe this is your issue? https://stackoverflow.com/questions/13913941/how-to-fix-ssl-certificate-error-when-running-npm-on-windows – Suraj Rao Jun 02 '17 at 06:35
  • @david R....any usefull thing you found??if you.....can u please share – Sa E Chowdary Jun 02 '17 at 06:46
  • @suraj Thanks for the link. I don't prefer to set the `strict_ssl` to false. Trying other suggestions specified there, so far no luck – David R Jun 02 '17 at 06:47
  • @SaEChowdary You also facing the same issue? – David R Jun 02 '17 at 06:47
  • 2
    not exactly but i am curious to know about this – Sa E Chowdary Jun 02 '17 at 06:48
  • @SaEChowdary Sure thing!. Will update the post if I found anything useful :) – David R Jun 02 '17 at 06:49
  • Could you try to redownload ionic? "npm install -g ionic" Or as workaround, try to disable git ssl : "git config --global http.sslVerify false" – Foo Bar Jun 02 '17 at 06:51
  • have u checked this david https://github.com/npm/npm/issues/9580 – Sa E Chowdary Jun 02 '17 at 06:54
  • @FooBar Thanks for the answer. Tried installing ionic globally. Question about thh second suggestion, if I disable `http.sslVerify` will it compromise the security? – David R Jun 02 '17 at 06:55
  • @SaEChowdary Thanks for the link!. I have checked that too, I'm not convinced to issue `npm config set strict-ssl false` which is the common answer given there :) – David R Jun 02 '17 at 06:56
  • yeah i am too seeing the same thing with other links also..... – Sa E Chowdary Jun 02 '17 at 06:57
  • 1
    Disabling ssl can compromise security, there is a big discussion [here](https://github.com/nodejs/node/issues/3742) where the other proposition is to set "npm config set registry http://registry.npmjs.org/" and last one to add a 'cafile' ...read link. – Foo Bar Jun 02 '17 at 07:05
  • 1
    @FooBar Sure, I will go through! – David R Jun 02 '17 at 07:13
  • 1
    @FooBar The only fruitful solution they gave is to create a `.pem` file and to set it via `npm config.. ` command, however since I don't have `openssl` here in my working environment, I'm not able to explore that. I ended up downloading the `starter kit` from the `ionic` git page, and doing the development now. – David R Jun 02 '17 at 07:58
  • 1
    **Update**: https://github.com/npm/npm/issues/16868 – David R Jun 02 '17 at 12:21
  • I've tried this nice article, no luck though :( => https://blogs.msdn.microsoft.com/phkelley/2014/01/20/adding-a-corporate-or-self-signed-certificate-authority-to-git-exes-store/ – David R Jun 15 '17 at 07:43

0 Answers0