Click here to Skip to main content
15,867,453 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Every time I run npm create-react-app my-app or any npm command in gitbash console I get this error:
npm ERR! code ERR_SSL_CIPHER_OPERATION_FAILED
npm ERR! BC0D0000:error:1C800066:Provider routines:ossl_gcm_stream_update:cipher operation failed:c:\ws\deps\openssl\openssl\providers\implementations\ciphers\ciphercommon_gcm.c:320:
npm ERR!


What I have tried:

I tried many solutions I found in the web, from reinstalling node js, installing the new openssl version, reinstalling git bash (console), allowed gitbash and nodejs through firewall, running this command
npm config set strict-ssl false
and even formatted the whole PC.
Posted
Updated 13-Apr-23 6:40am
v2

Did you try to move to another location as well? Just kidding, I am having the same problem and get crazy about it. Reinstalling node js worked for me one time, but the next repo I had the same issue again. What I also tried and what was very helpful is to install only minimal packages from your package.json.

Then, you can gradually increase till you get the error and you will find out which packages cause the issue (or if it is already there with minimal setup=
 
Share this answer
 
v3
I just installed the latest LTS Node version and It works for me.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900