ERR_SSL_DECRYPTION_FAILED_OR_BAD_RECORD_MAC - can't install node packages either via npm or yarn

Viewed 322

Can't install node packages via npm or yarn

This has been happening to me since last month and I have tried multiple solutions from the internet including stack overflow solutions like https://stackoverflow.com/a/34945326/15488503

The problem is regenerated each time I run commands like

yarn install
npm install
npx create-react-app myapp

The error which I see mostly revolves around this error message -

ERR_SSL_DECRYPTION_FAILED_OR_BAD_RECORD_MAC

enter image description here

I have tried with multiple node and npm versions and still, the problem remains the same for me.

enter image description here

1 Answers

Besides updating your version of node to an active or current LTS you want to ensure your NPM registry is set to an HTTPS endpoint:

npm set registry=https://registry.npmjs.org/
Related