Anne
Anne

Reputation: 59

getaddrinfo ENOTFOUND error in ionic

I have a question, why I get this error when i install for ionic, error getaddrinfo ENOTFOUND in github.com

Error: getaddrinfo ENOTFOUND github.com github.com:443

Creating Ionic app in folder ~..\conference base d on sidemenu project Downloading: https://github.com/driftyco/ionic-app-base/archive/master.zip Error Initializing app: Error: getaddrinfo ENOTFOUND github.com github.com:443

Anyone gotten this to work correctly that could share what they did? Here is the error

Upvotes: 0

Views: 14068

Answers (7)

Pawan Kumar Singh
Pawan Kumar Singh

Reputation: 31

Please try following steps one by one, it will help:

  1. try clearing cache: npm cache clean

  2. set correct proxy: npm set proxy http://yourproxy:port

  3. if error persists, contact your admin/proxy provider

Upvotes: 3

Ahmed MR-mody
Ahmed MR-mody

Reputation: 61

default proxy part :8080 can close Xampp And Skype or other program use it port

Upvotes: 0

johannesdwicahyo
johannesdwicahyo

Reputation: 31

Looks like it is a connectivity issue. Check your internet connection, the error message said that it can't found DNS(domain name system) server and can't translate the domain github to respected address(IP).

Upvotes: 1

Mahesh Nighut
Mahesh Nighut

Reputation: 121

thi error is generally because npm can not able to download necessary files for your project .so it is due to your net whether you dont have internet connection or you dont have set the proxy

try this set http_proxy=http://192.168.0.14:3128 http will be different for your pc .

Upvotes: 0

Oliver Moolman
Oliver Moolman

Reputation: 488

It sounds like a connectivity issue, Ionic needs a network connection to get the templates for projects when you start them as well as gradle files etc when you try to run them in a device. As Pawan suggested it is most likely a proxy issue, here is an article describing the usage if that is the case:

Instead of setting the NPM proxy settings, try this:

set proxy=http://yourproxy:port

*notice the lack of npm at the beginning of the statement.

Hope this helps

Upvotes: 2

Sunil Lama
Sunil Lama

Reputation: 4539

Install it via npm.

Download node.js.

Run command: npm install -g ionic

-g will surmount the need of specifying the ionic so that you can access ionic as soon as you install it.

Upvotes: 2

Related Questions