Reputation: 59
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
Reputation: 31
Please try following steps one by one, it will help:
try clearing cache: npm cache clean
set correct proxy:
npm set proxy http://yourproxy:port
if error persists, contact your admin/proxy provider
Upvotes: 3
Reputation: 1172
Most of the things did not worked for me ... Request you to please do this ..will work ...
http://www.sharepointconfig.com/2017/04/using-npm-behind-a-proxy-that-uses-ntlm-authentication/ http://www.sharepointconfig.com/2017/04/using-npm-behind-a-proxy-that-uses-ntlm-authentication/
Upvotes: 0
Reputation: 61
default proxy part :8080 can close Xampp And Skype or other program use it port
Upvotes: 0
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
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
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
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