I am new to developing react native app. I'm facing problem while installing axios using the command npm install axios
in my terminal.
I have tried below code as well to install axios library:
npm install --save axios
npm i axiois --save
So what is the problem why I am not able to get dependencies in my app?
A small request also is install
and i
are the same in this npm command?
UPDATE
Here is the log that might help you:
npm ERR! code ETIMEDOUT
npm ERR! errno ETIMEDOUT
npm ERR! network request to https://registry.npmjs.org/axios failed, reason: connect ETIMEDOUT 104.16.21.35: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!
UPDATE 2
As everyone is pointing to a network problem I have tried all the answer and commentes you have provided but nothing works, but I am able to use internet on my PC easily means device in which I am running this command.
npm install axios
on the same device I am using browser, spotify and in terminal I just installed vlc using apt-get install
so there is no chance of technical issue. Thank you all for help but nothing working is there any other solution?