create-react-app
create-react-app copied to clipboard
I can't create a new react app.
It shows me this error.
npm ERR! code ERR_SOCKET_TIMEOUT npm ERR! errno ERR_SOCKET_TIMEOUT npm ERR! network Invalid response body while trying to fetch https://registry.npmjs.org/@eslint%2feslintrc: Socket timeout 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\hp users\AppData\Local\npm-cache_logs\2022-10-11T07_54_59_360Z-debug-0.log
Aborting installation. npm install --no-audit --save --save-exact --loglevel error react react-dom react-scripts cra-template has failed.
Follow These Steps:- npm cache clean --force npm uninstall -g create-react-app npm uninstall create-react-app npx create-react-app app_name
if this doesn't works then swith to, yarn create react-app app_name also check your connectivity.