err_ssl_decryption_failed_or_bad_record_mac-can can can can stinst install instance bass npm或yarn
无法通过NPM或YARN安装节点软件包
自从上个月以来,我一直在我尝试过,我尝试了来自Internet的多个解决方案,包括堆栈溢出解决方案,例如 https://stackoverflow.com/a/34945326/154888503
每次我运行命令时,问题都会再生,就像
yarn install
npm install
npx create-react-app myapp
我看到的错误一样,我会看到这个错误围绕此错误消息 - 围绕此错误消息 -
err_ssl_decryption_failed_or_bad_record_mac
我尝试使用多个节点和NPM版本,但问题仍然对我来说仍然相同。
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
I have tried with multiple node and npm versions and still, the problem remains the same for me.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
当我通过USB WiFi适配器使用Internet时,我遇到了这个问题。用电缆解决了我的计算机,我的err_ssl_decryption_failed_or_or_bad_record_mac问题
\ _(ツ)_/¯
I had this problem when i was using internet via a USB Wifi adapter. Connected my computer with a cable solved my ERR_SSL_DECRYPTION_FAILED_OR_BAD_RECORD_MAC problem
¯\_(ツ)_/¯
除了将您的节点版本更新为活动或当前LTS外,还要确保将NPM注册表设置为HTTPS端点:
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:
当您的Windows防火墙试图阻止NPM从连接的网络下载文件时,就会发生这种情况。
要解决此问题,请按照以下步骤:
查看映像
如果这不起作用,请尝试通过打开VPN来安装依赖项。
This happens when your Windows Firewall tries to block npm from downloading files from your connected network.
To fix this issue follow the steps below:
View image
If this does not work then try installing the dependencies by switching on VPN.
我在使用廉价USB WiFi适配器时也遇到了这个问题。
对我而言,解决方案是设置超时:
我假设如果发生任何连接的错误,操作不会中止,但由于此参数而续签
I was also having this issue while using cheap USB Wifi adapter.
For me solution was to set timeout:
I assume if any error with connection occured, operation is not aborted but renewed thanks to this param
在面对问题超过6个月后,我认为我找到了解决方案。这是
VPN
(虚拟专用网络)。我意识到问题是因为我的网络连接,而不是
npm
的错。我在下载软件包时使用了VPN
,这阻止了该错误。但是,这也无法一直工作。
更新:更改我的网络连接解决了上述问题。
After facing the issue for more than 6 months, I think I found a solution. It's a
VPN
(virtual private network).I realized that the issue was because of my network connection and was not a fault of
NPM
. I was usingVPN
while downloading packages, which prevented that error.However, this also doesn't work all the time.
Update: Changing my network connection solved the above problem.