Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ionic Won't Work on "My" Windows 7 Environment

I have been trying to follow the "Getting Started with Ionic" steps and can't seem to get past step 2 "Start a Project". I am getting the following error, when I try to create the Ionic project.

C:\Users\peterstb>ionic start myApp tabs
Creating Ionic app in folder C:\Users\peterstb\myApp based on tabs project

Downloading: https://github.com/driftyco/ionic-app-base/archive/master.zip
Error fetching: https://github.com/driftyco/ionic-app-base/archive/master.zip { [Error: connect ETIMEDOUT] code: 'ETIMEDOUT', errno: 'ETIMEDOUT', syscall: 'conn
ect' }
Error: Unable to initalize app:  { [Error: connect ETIMEDOUT] code: 'ETIMEDOUT', errno: 'ETIMEDOUT', syscall: 'connect' }

I do have a proxy that I have to go through, but I had to resolve that to get the cordova and ionic components installed in the first place. Many of the threads I have seen have pointed to a proxy issue, which makes sense to me, but I can't seem to find anything that addresses "additional" proxy configuration requirements, above and beyond what has been set to accomplish component install tasks.

like image 321
Todd Peterson Avatar asked Dec 20 '22 10:12

Todd Peterson


1 Answers

Ionic doesn't use npm proxy settings. So you have to set PROXY separately for ionic. You can do it by setting an PROXY environment variable in windows manually or via command prompt by SET (for current session only) or using SETX command to set it globally.

set PROXY=http://YourProxy:8080/

or

setx PROXY http://YourProxy:8080/

if your proxy requires user name and password you can set it as:

set PROXY=http://YourUserName:YourPassword@YourProxy:8080/
like image 124
Vlad Bezden Avatar answered Dec 28 '22 06:12

Vlad Bezden