Error installing Ionic 3 by NPM

1

I'm using linux Manjar and when I install the ionic with the command sudo npm install -g ionic it returns that error to me.

[mike@mike-pc ~]$ sudo npm install -g ionic
[sudo] senha para mike: 
npm WARN registry Using stale data from https://registry.npmjs.org/ because the host is inaccessible -- are you offline?
npm WARN registry Using stale package data from https://registry.npmjs.org/ due to a request error during revalidation.
npm ERR! code ENOTFOUND
npm ERR! errno ENOTFOUND
npm ERR! network request to https://registry.npmjs.org/cross-spawn failed, reason: getaddrinfo ENOTFOUND registry.npmjs.org registry.npmjs.org:443
npm ERR! network This is a problem related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network 
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly.  See: 'npm help config'

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2017-11-09T01_26_32_434Z-debug.log
[mike@mike-pc ~]$ ^C
[mike@mike-pc ~]$ 
    
asked by anonymous 04.11.2017 / 21:45

1 answer

1

There is a problem between your network and that of npm so this is the problem, this problem is known by the staff of npm and they pass that must be corrected with the command below.

npm config get proxy
npm config get https-proxy
    
09.11.2017 / 05:43