Ionic 3 CLI cannot start a project behind a proxy

I am new to Ionic. I ran into problems with proxies when I started working with Ionic 3.

After installing Ionic and cordova via npm, I tried to create a new project using the command below, 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-00-0043 enter image description here

Configuration

npm and git config are already installed and working, since I work with angular behind a proxy server, able to install any libraries and click on github without problems

There are HTTP_PROX, PROXY, and IONIC_HTTP_PROXY environment variables.

I tried to remove the ionic and reinstall, install the proxy again, but nothing helps. Could not find any help. Do I need to install any other proxy for working with ionic 3? Please help me in resolving this issue.

version

  • Node: 7.8.0
  • npm: 4.0.3
  • ionic: 3.1.2
  • cordova: 7.0.1
+5
source share
2 answers

I ran into the same problem with ionic 3, he decided to use the latest versions of node.js

in fact, I used versions v6.10.3 recommended for most users, do not use current versions, because usually it is not stable yet.

0
source

The problem is fixed after updating to the 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 
0
source

All Articles