err_ssl_decryption_failed_or_bad_record_mac-can can can can stinst install instance bass npm或yarn

发布于 2025-02-09 20:15:39 字数 831 浏览 2 评论 0原文

无法通过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

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

要走就滚别墨迹 2025-02-16 20:15:39

当我通过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
¯\_(ツ)_/¯

烟雨扶苏 2025-02-16 20:15:39

除了将您的节点版本更新为活动或当前LTS外,还要确保将NPM注册表设置为HTTPS端点:

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

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/
情话难免假 2025-02-16 20:15:39

当您的Windows防火墙试图阻止NPM从连接的网络下载文件时,就会发生这种情况。

要解决此问题,请按照以下步骤:

  1. 在Windows搜索栏中选择“ Windows Defender Firewall ”:
    查看映像
  2. 单击“ ” >“:查看映像
  3. 单击“ 更改” “ button ”按钮: 查看图像
  4. scroll scroll to“ node.js javascript runtime ”当然,您同时选择公共网络和专用网络,以允许NPM安装文件,而与网络无关。 查看图像
  5. 最后,单击“确定”,现在尝试重新安装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:

  1. Select "Windows Defender Firewall" in your Windows search bar:
    View image
  2. Click on "Allow an app or feature through Windows Defender Firewall": View Image
  3. Click on "Change Settings" button: View image
  4. Scroll to "Node.js Javascript Runtime" and make sure you select both public and private networks to allow npm to install files irrespective of your network. View image
  5. Finally, click "Ok" and now try re-installing the npm package.

If this does not work then try installing the dependencies by switching on VPN.

╰つ倒转 2025-02-16 20:15:39

我在使用廉价USB WiFi适配器时也遇到了这个问题。
对我而言,解决方案是设置超时:

yarn --network-timeout 100000

我假设如果发生任何连接的错误,操作不会中止,但由于此参数而续签

I was also having this issue while using cheap USB Wifi adapter.
For me solution was to set timeout:

yarn --network-timeout 100000

I assume if any error with connection occured, operation is not aborted but renewed thanks to this param

怪我入戏太深 2025-02-16 20:15:39

在面对问题超过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 using VPN 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文