While trying so hard to create my first react app on git Bash, the following error keeps coming:
npm ERR! code ECONNRESET
npm ERR! errno ECONNRESET
npm ERR! network request to https://registry.npmjs.org/- failed, reason: read ECONNRESET
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\bamidele\AppData\Roaming\npm-cache\_logs\2019-07-24T06_27_39_875Z-debug.log```
Can you show your package.json
file here?
Issue : I think https://registry.npmjs.org/ is not reachable in network you are connected.
Solution : try using network proxy
I am really new to node. Kindly explain the procedure to use in using network proxy.
If you are using linux try
sudo create-react-app appname
"name": "reactja",
"version": "1.0.0",
"description": "First React Program",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC"
}
You can do something like below
1 Open command line
2 Run command export https_proxy=http://proxy.XYZ.com:9480
3 Try creating react-app
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\bamidele\AppData\Roaming\npm-cache\_logs\2019-07-24T06_27_39_875Z-debug.log
Above quoted error still surfaces anytime I create react app both on command prompt and git bash. I’m longing for somebody to come to my aid, please.
Can you try using yarn just to see if it works, install it and run yarn create react-app my-app
.