Error starting ionic project - ionic-framework

I have installed Node.js to start with an ionic project.
I have also installed ionic and cordova using the commands below:
npm install ionic -g
npm install cordova -g
I am using the command below to create an ionic project:
ionic start myApp blank
And i m getting the following error:
D:\IonicWork>ionic start myApp blank
Creating Ionic app in folder D:\IonicWork\myApp based on blank project
Downloading: https://github.com/driftyco/ionic-app-base/archive/master.zip
Error with start Error: connect ETIMEDOUT 192.30.253.121:443
at Object.exports._errnoException (util.js:1036:11)
at exports._exceptionWithHostPort (util.js:1059:20)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1080:14)
Error Initializing app: Error: connect ETIMEDOUT 192.30.253.121:443
Error: connect ETIMEDOUT 192.30.253.121:443
at Object.exports._errnoException (util.js:1036:11)
at exports._exceptionWithHostPort (util.js:1059:20)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1080:14)
Caught exception:
Error: connect ETIMEDOUT 192.30.253.121:443
at Object.exports._errnoException (util.js:1036:11)
at exports._exceptionWithHostPort (util.js:1059:20)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1080:14)
Mind letting us know? https://github.com/driftyco/ionic-cli/issues
Please suggest.
Thanks,
Malini

If you are on a company network, you are most probably behind a corporate web proxy. There are plenty of solution out there.
For a headstart, you need to add http_proxy and https_proxy environment variables based on the proxy you got from your company IT department.
Open your node command prompt in administrator mode and run following command. After that, close and restart your node command prompt and try to run ionic start again.
npm config set proxy http://proxy.company.com:8080
npm config set https-proxy http://proxy.company.com:8080

Better to start in ionic creator.and its the better place for design also

Related

webdriver-manager start: Error: connect ETIMEDOUT

I am configurating protractor environment by the http://www.protractortest.org/#/ website.When execute
webdriver-manager start
webdriver-manager: using global installed version 12.0.6
events.js:183
throw er; // Unhandled 'error' event
^
Error: connect ETIMEDOUT 192.30.255.116:443
at Object._errnoException (util.js:1024:11)
at _exceptionWithHostPort (util.js:1046:20)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1182:14)
But sometimes,it will execute success.
The environment is:
Protractor –version:5.2.0
Java –version:1.8.0_131
Node –v:v8.9.0
Npm –v:5.5.1
Can someone please telling me what is happening here. Your assistance is appreciated.
If you are behind a VPN, you may need to add a proxy.
> set HTTP_PROXY=http://proxy.host.blah:80
> set HTTPS_PROXY=http://proxy.host.blah:80
> webdriver-manager start
This worked for me anyway.

How to set proxy in config for protector

I am using protector with angular 4, when i run e2e test it failed to download some dependency from network as it blocked within my org proxy.
I tried to set proxy in protractor.conf.js, but it did not work for me.
capabilities: {
'browserName': 'chrome',
'proxy': {
'proxyType': 'manual',
'httpProxy': 'http://ptx.proxy.corp.sopra:8080'
}
below error I'm getting when run ng e2e
webpack: Compiled successfully.
events.js:183
throw er; // Unhandled 'error' event
^
Error: connect ETIMEDOUT 216.58.204.144:443
at Object._errnoException (util.js:1024:11)
at _exceptionWithHostPort (util.js:1046:20)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1182:14)
Can someone please tell me how to use the proxy within in.
I did find a way around to set the proxy, I set up proxy in system environment variable with key http_proxy and ng e2e ran fine for me.

start a new project in IONIC error

i want to start a new project in IONIC with this command "ionic start myApps tabs" but i get this error :
[INFO] Fetching app base (https://github.com/ionic-team/ionic2-app-base/archive/master.tar.gz) × Downloading - failed! Error: unable to verify the first certificate at Error (native) at TLSSocket. (_tls_wrap.js:1092:38) at emitNone (events.js:86:13) at TLSSocket.emit (events.js:185:7) at TLSSocket._finishInit (_tls_wrap.js:610:8) at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:440:38)
please help me to solve it
Be sure that you have the latest node, cordova and ionic cli updates.
Try to stop all server instances. I mean stop the localhost:8080 server.

EACCES Error on Startup

Since upgrading to VSCode 1.5.1 (from 1.4), I get an error message saying "connect EACCES 191.238.172.191:443" whenever starting VSCode. I've turned off the various documented privacy settings and blocked VSCode in my firewall (because my internet is usually slow and expensive). That URL seems to point to Microsoft, Brazil. Is there any way to stop VSCode 1.5.1 from trying to phone home?
 code --verbose
[main 2020-03-18T15:26:02.655Z] Error: connect EACCES /Users/nasa/Library/Application Support/Code/1.43.0-main.sock
at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1056:14)
[main 2020-03-18T15:26:02.657Z] Lifecycle#kill()
 cd ~/Library/ApplicationSupport/code
 sudo chmod -R 777 1.43.0-main.sock

getting error while executing ionic App in terminal using command $ionic serve?

I have installed
Node.js
Cordova
ionic
After Installation I created a project as
$ionic start myApp
$cd myApp
$ionic serve
but localhost doesn't load any thing and terminal shows the following error:
The port 8100 was taken on the host localhost - using port instead
Gulp startup tasks: 0=sass, 1=watch
Running live reload server: undefined
Watching: 0=www/**/*, 1=!www/lib/**/*
Running dev server: http://localhost:
Ionic server commands, enter:
restart or r to restart the client app from the root
goto or g and a url to have the app navigate to the given url
consolelogs or c to enable/disable console log output
serverlogs or s to enable/disable server log output
quit or q to shutdown the server and exit
ionic $ events.js:141
throw er; // Unhandled 'error' event
^
Error: listen EADDRNOTAVAIL 192.168.1.5
at Object.exports._errnoException (util.js:870:11)
at exports._exceptionWithHostPort (util.js:893:20)
at Server._listen2 (net.js:1221:19)
at listen (net.js:1270:10)
at net.js:1379:9
at GetAddrInfoReqWrap.asyncCallback [as callback] (dns.js:64:16)
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:83:10)
What is the problem?
Update your ionic version
npm install -g ionic
or
npm install -g ionic#1.1.7
or
npm install -g ionic#1.1.9-beta1
Yes, I got the solution
I needed to use the following code before using
$ ionic serve
first, type
$ionic address
it will show
1)your IP-Address
2)localhost
select 1st option i.e. your IP-Address
and now, you can go with $ionic serve
its, working now.
Thanks All.