5

I'm new to Ionic. I'm facing proxy issues while getting started with Ionic 3.

After installing Ionic & cordova via npm tried to create a new project with the below command as suggested by ionic help enter image description here

npm install -g @ionic/cli-plugin-proxy

followed by

ionic start helloWorld blank --type ionic-angular

Error: getaddrinfo ENOTFOUND github.com github.com:443enter image description here

npm config and git config are already set and working since i work with angular behind proxy able to install any libraries and push to github without any issues

Having environment variables HTTP_PROX,PROXY and IONIC_HTTP_PROXY as well.

Tried uninstalling ionic and reinstall, set proxies again but nothing helps. Couldn't find any help.Do i need to set any other proxy to work with ionic 3 ? Kindly guide me in resolving this.

versions

  • Node : 7.8.0
  • npm : 4.0.3
  • ionic : 3.1.2
  • cordova : 7.0.1
Yoda
  • 116
  • 2
  • 7
  • 1
    are you sure env variables are set correctly? https://github.com/driftyco/ionic-cli#using-a-proxy – Suraj Rao May 17 '17 at 09:44
  • Thanks for the link Suraj , I have added IONIC_HTTP_PROXY as well but still getting the same issue. – Yoda May 17 '17 at 10:12
  • 1
    @Yoda Is your problem fixed? If yes, please share ..thanks – mnhmilu May 23 '17 at 08:40
  • @mnhmilu No ! problem still exists.Have raised a issue but no solution yet. You can also confirm the issue there [Ionic 3 CLI unable to start project behind proxy](https://github.com/driftyco/ionic-cli/issues/2317) – Yoda May 23 '17 at 15:43
  • Having same issue – Enrique May 24 '17 at 17:43

2 Answers2

0

I faced same problem with ionic 3 it solved by use latest versions of node.js

in fact I used versions v6.10.3 recommended for most user, don't use the current versions, because normally it doesn't not stable yet.

ajd.nas
  • 354
  • 2
  • 12
0

Issue is fixed after updating to latest CLI 3.3.0

global packages:

@ionic/cli-plugin-proxy : 1.3.0
@ionic/cli-utils        : 1.3.0
Ionic CLI               : 3.3.0

System:

Node       : v6.10.3
OS         : Windows 7
Xcode      : not installed
ios-deploy : not installed
ios-sim    : not installed
Yoda
  • 116
  • 2
  • 7