Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm ERR! code ERR_SSL_CIPHER_OPERATION_FAILED #41056

Closed
Legend108 opened this issue Dec 2, 2021 · 30 comments
Closed

npm ERR! code ERR_SSL_CIPHER_OPERATION_FAILED #41056

Legend108 opened this issue Dec 2, 2021 · 30 comments
Labels
npm Issues and PRs related to the npm client dependency or the npm registry.

Comments

@Legend108
Copy link

Legend108 commented Dec 2, 2021

Version

v17.2.0

Platform

Microsoft Windows NT 10.0.19044.0 x64

Subsystem

No response

What steps will reproduce the bug?

When installing any package, it just keeps throwing: npm ERR! code ERR_SSL_CIPHER_OPERATION_FAILED

How often does it reproduce? Is there a required condition?

Reproduces while installing packages

What is the expected behavior?

The expected behaviour is to generate a package-lock.json file, and show that the package is installed.

What do you see instead?

npm ERR! code ERR_SSL_CIPHER_OPERATION_FAILED
npm ERR! 541E0000:error:1C800066:Provider routines:ossl_gcm_stream_update:cipher operation failed:c:\ws\deps\openssl\openssl\providers\implementations\ciphers\ciphercommon_gcm.c:312:
npm ERR!

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\mousu\AppData\Local\npm-cache_logs\2021-12-03T09_02_28_048Z-debug.log

Additional information

No response

@Mesteery Mesteery added the npm Issues and PRs related to the npm client dependency or the npm registry. label Dec 2, 2021
@Legend108 Legend108 changed the title Cannot read properties of undefined (reading 'isServer') npm ERR! code ERR_SSL_CIPHER_OPERATION_FAILED Dec 3, 2021
@Legend108
Copy link
Author

If you are wondering, installing NodeJS v17.2.0 fixed the isServer error, but now is generating a new error

@koshakarai
Copy link

koshakarai commented Dec 5, 2021

I have the same problem and solved it this way:

  1. Returned to node version 16.13.1 and npm version 8.1.2
  2. Connected to a different wi-fi network and run npx create-react-app appName.
  3. Had another error: "Cannot read property 'pickAlgorithm'"
  4. runned this
    npm cache clear --force
    npm i -g @sap/cds-dk
  5. Runned npx create-react-app appName

Then things got back to normal
P.S. on other my devise im had not any problem like in point 3. All going good after chage wi-fi.

@Trott
Copy link
Member

Trott commented Dec 12, 2021

This seems like a network/firewall/proxy issue (and/or perhaps an npm issue), so I'm going to go ahead an close this, but feel free to comment if you think I'm wrong about that.

@Trott Trott closed this as completed Dec 12, 2021
@theunderdogdev
Copy link

Hi, seems this is not resolved for me
I tried the above things changed Wi-Fi reinstalled Node JS (Also checked with LTS ).
Node JS LTS v16.3.2 gives the error of
npm ERR! Cannot read properties of undefined (reading 'isServer')

@anupam39
Copy link

anupam39 commented May 6, 2022

running 'npm cache verify' worked for me.

@mojae
Copy link

mojae commented Nov 15, 2022

I just turn off the wifi then turn on and it s worked for me!!!!!!!!!!!!!

@frostedpenguin
Copy link

I just turn off the wifi then turn on and it s worked for me!!!!!!!!!!!!!

This worked for me too! 🥳

@yateendra
Copy link

I just turn off the wifi then turn on and it s worked for me!!!!!!!!!!!!!
this worked for me

@Hussain-ai
Copy link

Can someone please help me I have the same issue, formatted pc, reinstall opensll newest version 3.0.7, newest node js version and still cant do anything using npm install or npm create-react-app

@AdarshMitr
Copy link

I'm having the same problem. I could not install the create-react app.

@redshift-cyber
Copy link

@AdarshMitr @Hussain-ai
use vite instead of create-react-app. Switching to Vite.js fixes the problem. Vite initializes a react app most quickly than create-react-app. Go check it out at https://vitejs.dev

@UbaidullahMOmer
Copy link

I am creating a Strapi project using 'npx create-strapi-app@latest my-project'
But the showing error
{
**npm install --legacy-peer-deps
npm WARN deprecated [email protected]: Please upgrade to latest, formidable@v2 or formidable@v3! Check these notes: https://bit.ly/2ZEqIau
npm notice Beginning October 4, 2021, all connections to the npm registry - including for package installation - must use TLS 1.2 or higher. You are currently using plaintext http to connect. Please visit the GitHub blog for more information: https://github.blog/2021-08-23-npm-registry-deprecating-tls-1-0-tls-1-1/
npm ERR! code ERR_SSL_CIPHER_OPERATION_FAILEDnpm ERR! D02D0000: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!

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Ubaidullah\AppData\Local\npm-cache_logs\2023-02-28T10_10_42_466Z-debug-0.log**
}

@VoVanToan26
Copy link

I just turn off the wifi then turn on and it s worked for me!!!!!!!!!!!!!

Thank you. This worked for me

@UbaidullahMOmer
Copy link

Turn off the wifi then turns it on I think 🤔 it will work.

@A1X5H04
Copy link

A1X5H04 commented May 4, 2023

These methods works for me !

  1. Connecting to different Wi-Fi network
  2. Resetting the Wi-Fi network settings, try to reset Wi-Fi settings, and wait for 5 minutes your PC will automatically restart, which will hopefully fix the error (but only for sometime)
  3. Turn off your firewall and try again

@TranQuangTin-IT
Copy link

npm install -g https://tls-test.npmjs.com/tls-test-1.0.0.tgz

@sansk
Copy link

sansk commented Jun 13, 2023

running 'npm cache verify' worked for me.

This definitely worked for me while installing 'luxon' package

@adib3006
Copy link

I just turn off the wifi then turn on and it s worked for me!!!!!!!!!!!!!

I've spent hours trying to figure out what went wrong. Finally this solved my issue. For anyone who's gonna come here with the same issue, try reconnecting the network first. Trust me it's gonna save a lot of time. Thanks man.

@glovek08
Copy link

I just turn off the wifi then turn on and it s worked for me!!!!!!!!!!!!!

I switched to USB tethering with my phone and ended up working! If it wasn't for you bro...

@accessarham
Copy link

I resolved it 🙂. I installed the MongoDB shell a few days ago. Now, I completely removed and its working and created the nextjs app successfully using "npx create-next-app@latest".

@imex7
Copy link

imex7 commented Sep 8, 2023

I resolved it 🙂. I installed the MongoDB shell a few days ago. Now, I completely removed and its working and created the nextjs app successfully using "npx create-next-app@latest".

LOL (((

@kumaran7kishore
Copy link

It seems, the error comes while fetching from https://registry.npmjs.org

So I executed the below commands,
npm cache clear --force
npm config set registry https://registry.npmjs.org/
npx create-next-app@latest

This worked for me!

@Nbelankar
Copy link

Try this
npm cache clean --force
npm config rm proxy
npm config rm https-proxy

And remove your node_modules within your user. In Windows, it is

C:\Users${select_your_user}\AppData\Roaming\npm\node_modules

answered by
Cafeteru_
https://stackoverflow.com/users/7593088/cafeteru
thanks

This worked for me!

@charitydarko
Copy link

Restarting PC was the key 🔑

@Jachi404
Copy link

I just turn off the wifi then turn on and it s worked for me!!!!!!!!!!!!!

this worked!! try use hotspot as well

@zfrmansuri
Copy link

Turn Off and then reconnect to your wifi, if it still does't work then connect to some other wifi , this worked for me hope so will work for you too.

@jpbaires
Copy link

npm install -g @angular/cli
ifyou got following error then

npm ERR! code ECONNRESET
npm ERR! syscall read
npm ERR! errno ECONNRESET
npm ERR! network Invalid response body while trying to fetch https://registry.np
mjs.org/@angular-devkit%2farchitect: 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 settin
gs.
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\ADMIN\AppData\Local\npm-cache_logs\2023-02-26T10_55_00_10
7Z-debug-0.log


to solve this issue
run following command

npm config set registry https://registry.npmjs.org/
after re-run following command
npm install -g @angular/cli

@CillianCoder
Copy link

I just turn off the wifi then turn on and it s worked for me!!!!!!!!!!!!!

worked for me

@BIIIGBULL
Copy link

i changed my wifi network and it worked

@Abderazak-Amiar
Copy link

This seems like a network/firewall/proxy issue (and/or perhaps an npm issue), so I'm going to go ahead an close this, but feel free to comment if you think I'm wrong about that.

On my side, this issue caused by the firewall, I am using Simplewall as a network activity filter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
npm Issues and PRs related to the npm client dependency or the npm registry.
Projects
None yet
Development

No branches or pull requests