您的位置:首页 > 技术中心 > 前端框架 >

react 安装插件就报错怎么办

时间:2023-01-18 14:27

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 https://yarnpkg.com/en/docs/cli/add for documentation about this command.

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

解决方法:

运行如下指令:

yarn cache clean

7c96e110eec2d6f1ba5fdc4c4e1f9eb.jpg

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

推荐学习:《react视频教程》

以上就是react 安装插件就报错怎么办的详细内容,更多请关注gxlsystem.com其它相关文章!

热门排行

今日推荐

热门手游