For me, the answers provided did not help. I ran into this problem, installing both a cordon and an ionic one.
npm install -g cordova ionic
If the proxy server prevents this, other attempts are made to try installing the proxy server by making an http request and disabling strict-ssl. Example proxy server installation -
npm config set proxy=http://username: password@domain :port/
To make an HTTP request, change the configuration
npm config set registry=http:
To disable strict-ssl
npm config set strict-ssl=false
In addition, if you want to view a list of default configurations, type
npm config ls -l
It will also show which configurations have been overridden.
source share