Error install in ionic cordova process

221 views Asked by At

enter image description here

How to solve error installation problem in ionic

2

There are 2 answers

0
Aravind On

Installing ionic when your running behind a proxy

Uninstall Node.js if your facing a lot of errors.(optional)

Install Nodejs(mandatory)

Install Python(mandatory)

During installation ensure that environmental variable for python is checked

Step 1: start->cmd->(right click ) run as administrator

Step 2: type the following command cd\ to work as a root user

Step 3: Setting up windows proxy as below(use your organisation proxies)

set http_proxy=http://proxy.organisation.com:8000
set https_proxy=https://proxy.organisation.com:8000

Step 4: Setting up npm proxy as below(use your organisation proxies)

npm config set proxy http://proxy.organisation.com:8000
npm config set https-proxy http://proxy.organisation.com:8000

Step 5: Dont navigate to the user folder(From the root folder) execute the following command

npm install -g cordova ionic

which will install both ionic and cordova.

Possible Errors:

  • Python not found.
  • Windows_NT -> reason is your not an administrator.
  • ECONNREFUSED -> your connection is not going through proxy check for your proxy in npm using npm config list command.
0
tero17 On

you need to configure Ionic to use proxy to start a project. Define below environment varible on Windows:

Varible name: PROXY (capitalized) Varible value: http://host:port