Below is the error I am getting after running the command
C:\Users\parde>npx create-react-app app
Creating a new React app in C:\Users\parde\app.
Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts with cra-template...
npm ERR! code ERR_SSL_DECRYPTION_FAILED_OR_BAD_RECORD_MAC
npm ERR! errno ERR_SSL_DECRYPTION_FAILED_OR_BAD_RECORD_MAC
npm ERR! Invalid response body while trying to fetch https://registry.npmjs.org/@babel/core: 10552:error:1408F119:SSL routines:ssl3_get_record:decryption failed or bad record mac:c:\ws\deps\openssl\openssl\ssl\record\ssl3_record.c:677:
npm ERR!
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\parde\AppData\Local\npm-cache\_logs\2022-09-09T13_12_40_326Z-debug-0.log
Aborting installation.
npm install --no-audit --save --save-exact --loglevel error react react-dom react-scripts cra-template has failed.
Deleting generated file... package.json
Deleting app/ from C:\Users\parde
Done.C:\Users\parde>npx create-react-app app
I tried:
- Run npm cache clean --force
- Then Run npx create-react-app (project name)
CodePudding user response:
This seems to be a network-related error. Have a look at this thread. Try any of the following:
- use a VPN
- allow NodeJs in the firewall
- update your npm
npm install --location=global
- reinstall NodeJs
CodePudding user response:
Theirs an issue related to it in the NPM repo Seen to be something about the windows defender firewall