npm ERR code ERR_SSL_DECRYPTION_FAILED_OR_BAD_RECORD_MAC

一、npm ERR code ERR_SSL_DECRYPTION_FAILED_OR_BAD_RECORD_MAC

在Vue开发中使用 npm install xxx安装插件报错:

npm ERR! code ERR_SSL_DECRYPTION_FAILED_OR_BAD_RECORD_MAC

npm ERR! code ERR_SSL_DECRYPTION_FAILED_OR_BAD_RECORD_MAC
npm ERR! 17404:error:1408F119:SSL routines:ssl3_get_record:decryption failed or bad record mac:c:\ws\deps\openssl\openssl\ssl\record\ssl3_record.c:677:
npm ERR!

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\qianle102\AppData\Local\npm-cache\_logs\2022-06-08T10_05_53_202Z-debug-0.log

打开 logs文件查看错误提示:

Error: EPERM: operation not permitted, 此错误的意思是没有权限安装到文件夹,被拒绝了。

npm ERR code ERR_SSL_DECRYPTION_FAILED_OR_BAD_RECORD_MAC_第1张图片

 

二、解决方案:

修改mode_modules 文件夹,增加写入权限。

操作如下:

npm ERR code ERR_SSL_DECRYPTION_FAILED_OR_BAD_RECORD_MAC_第2张图片

 

 然后就可以安装了。

三、出现次错误还有一种可能。

参考:Vue3 npm ERR code ERR_SSL_DECRYPTION_FAILED_OR_BAD_RECORD_MAC

更多:

Vue 无法展示网络图片处理方案

Vue3 路由增加过度效果-淡入淡出

Vue 引入样式Scoped不起错用,解决方案

你可能感兴趣的:(Vue,npm,npm,ERR,code,ERR_SSL,DECRYPTION,AD_RECORD_MAC)