用户登录
用户注册

分享至

react 安装插件就报错怎么办

  • 作者: 水井很深
  • 来源: 51数据库
  • 2023-01-30

react安装插件就报错是由于从缓存中读取时不正确的完整性导致的,其解决办法:1、执行“yarn cache clean”命令;2、重新执行要安装的插件的指令操作即可。

本教程操作环境:Windows10系统、react18.0.0版、Dell G3电脑。

react 安装插件就报错怎么办?

在安装React插件的时候出现:error Incorrect integrity when fetching from the cache

安装React插件的时候出现:

error Incorrect integrity when fetching from the cache
info Visit http://www.51sjk.com/Upload/Articles/1/0/341/341858_20230130093619834.jpg for documentation about this command.

原因:从缓存中读取时不正确的完整性

解决方法:

运行如下指令:

yarn cache clean

7c96e110eec2d6f1ba5fdc4c4e1f9eb.jpg

最后再执行要安装的插件的指令操作即可。

软件
前端设计
程序设计
Java相关