error installing 'create-react-native-app' npm - node.js

I am getting this issue while installing the create-react-native-app app
npm install -g create-react-native-app
npm ERR! code ENOTFOUND
npm ERR! errno ENOTFOUND
npm ERR! network request to https://registry.npmjs.org/create-react-native-app failed, reason: getaddrinfo ENOTFOUND genproxy genproxy:8080
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! C:\Users\krishna\AppData\Roaming\npm-cache\_logs\2017-11-14T08_10_48_970Z-debug.log
I have tried removing any proxy that I was using still getting the same error.
C:\
λ npm -v
5.5.1
C:\
node -v
v8.9.1
Let me know if more info is needed.
Thanks

It was getting a wrong proxy which I didn't realised earlier.
I was under a corporate network so added the full name of the proxy 'genproxy.corporatename.com:8080' in place of 'genproxy:8080'.
Working fine!!

Related

NPM proxy problem when trying to install Vue CLI globally

I've tried to install Vue Cli globally, but doesn't install and also shows me some errors which is proxy settings. I've manually/cmd added some values on .npmrc file like below but it does not works for me.
npm config set proxy http://proxy.mycompany.com:8080
npm config set https-proxy http://proxy.mycompany.com:8080
The errors are below:
npm ERR! code ETIMEDOUT
npm ERR! errno ETIMEDOUT
npm ERR! network request to http://registry.npmjs.org/#vue%2fcli failed, reason: connect ETIMEDOUT 104.16.20.35:80
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! C:\Users\Viking_Castle\AppData\Roaming\npm-cache\_logs\2020-08-10T15_30_01_181Z-debug.log
Try removing proxies with the following command the try to install it
npm config rm proxy
npm config rm https-proxy
I had similar error
🗃 Initializing git repository...
⚙️ Installing CLI plugins. This might take a while...
npm ERR! code ETIMEDOUT npm ERR! errno ETIMEDOUT npm ERR! network request to https://cdn.npm.taobao.org/%40babel/plugin-transform-unicode-escapes/-/%40babel/plugin-transform-unicode-escapes-7.12.1.tgz failed, reason: connect ETIMEDOUT 129.227.206.207: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! C:\Users\Pradeep S\AppData\Roaming\npm-cache\_logs\2020-11-27T19_57_22_034Z-debug.log ERROR command failed: npm install --loglevel error
Resolved by changing Wifi connection to laptop. Used mobile hotspot to connect and tried creating project from vue cli again, and it worked this time

Npm "ENOTFOUND error" while installing a package

I would like to install a npm package and it shows me this error:
npm ERR! code ENOTFOUND
npm ERR! errno ENOTFOUND
npm ERR! network request to https://registry.your-registry.npme.io/npmrc failed, reason: getaddrinfo ENOTFOUND registry.your-registry.npme.io
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'
I tried to uninstall fully npm and node.js, and reinstall it and it still does not work.
Any Help Appreciated.
Run this command :
npm config set registry https://registry.npmjs.org/
Idk how you managed to change the default registry, but here's how you undo it :)

NPM does not allow installation of any packages like react

I have been trying to install react on my PC. The problem is that it always shows the following error:
D:\React JS>npm install react
npm ERR! code ENOTFOUND
npm ERR! errno ENOTFOUND
npm ERR! network request to https://registry.npmjs.org/react failed, reason getaddrinfo ENOTFOUND host
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! C:\Users\Idea1\AppData\Roaming\npm-cache\_logs\2020-04-16T12_57_52_202Z-debug.log
This is the issue, when I tried installing react or any other package.
try:
npm config delete proxy
then install command

I can't install npm package, problems with proxy

I tried to install some packages with npm on Centos8 but I have this issue:
npm ERR! code ENOTFOUND
npm ERR! errno ENOTFOUND
npm ERR! network request to https://registry.npmjs.org/ejs 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/2020-01-09T16_50_40_483Z-debug.log
I changed yum.conf but like:
gpgcheck=1
installonly_limit=3
clean_requirements_on_remove=True
best=True
#proxy=http://10.30.17.74:443
but I have been had the same problem, please help me.
Try passing the proxy setting when calling npm install via command line like so:
http_proxy=http://<yourproxy>:<proxyport> https_proxy=<yourproxy>:<proxy port> npm install <package>

Unable to install Angular CLI using node.js command prompt

I am unable to install Angular CLI on Windows.
I have tried the following:
C:\Users\username>node -v
v8.11.3
C:\Users\username> npm -v
5.6.0
C:\Users\username>npm install -g #angular/cli
npm ERR! code ETIMEDOUT
npm ERR! errno ETIMEDOUT
npm ERR! network request to https://registry.npmjs.org/#angularMfcli failed, reason: connect ETIMEDOUT 104.18.94.96: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'
Please tell me why it is not working and what I should do.
This error means your internet connection is not working.
I would suggest you check your internet connection and try again.

Resources