运行react项目时报错

caniuse-lite is outdated. please run next command

然后你运行了他给的npm update……还是不行,

在网上找了这个方法,可行:

Solution:

  1. Close Visual Studio
  2. Head to C:\Users\USERNAME\AppData\Local\Temp\WebCompilerX.X.X (X is the version of WebCompiler)
  3. Delete following folders from node_modules folder : caniuse-lite and browserslist
  4. Open up CMD (inside C:\Users\USERNAME\AppData\Local\Temp\WebCompilerX.X.X) and run: npm i caniuse-lite browserslist
  5. Done!

就是去你的node_modules 下删除caniuse-lite 和browserslist两个文件夹,记住这个文件夹,

再执行npm命令重新安装,如果没安装到上面这个文件夹下,那么就复制一份过去,

原文在这里,

转载于:https://www.cnblogs.com/1394htw/p/11023377.html

React :caniuse-lite is outdated. please run next command相关推荐

  1. flink1.13.2源码编译遇到的坑(三)Browserslist: caniuse-lite is outdated. Please run next command `npm update

    问题:Browserslist: caniuse-lite is outdated. Please run next command npm update 解决办法:先删了node_modules/c ...

  2. uni-app系列(十):Browserslist: caniuse-lite is outdated. Please run next command `npm update`

  3. Browserslist: caniuse-lite is outdated. Please run: npx ....

    今天打包 Vue 项目,突然蹦出一个告警: Browserslist: caniuse-lite is outdated. Please run:$ npx browserslist@latest - ...

  4. 控制台报错:Browserslist: caniuse-lite is outdated. Please run: npx browserslist@latest --update-db

    控制台报错:Browserslist: caniuse-lite is outdated. Please run: npx browserslist@latest --update-db 问题处理 1 ...

  5. Browserslist: caniuse-lite is outdated. Please run: npx update-browserslist-db@latest

    一.背景 使用 yarn start 或者 npm run dev 运行项目出现警告: Browserslist: caniuse-lite is outdated. Please run: npx ...

  6. Browserslist: caniuse-lite is outdated. Please run:npx browserslist@latest --update-db

    使用yarn start 运行项目出现警告⚠️ Browserslist: caniuse-lite is outdated. Please run: npx browserslist@latest ...

  7. 【前端】vue项目打包Browserslist: caniuse-lite is outdated. Please run: npx update-browserslist-db@latest解决方案

    解决方案 一.背景描述 二.解决方案 2.1 解决方案一:重新安装 caniuse-lite.browserslist 2.2 解决方案二:npm update caniuse-lite browse ...

  8. Linux timeout命令的使用:timeout - run a command with a time limit

    timeout是一个命令行实用程序,它运行指定的命令,如果在给定的时间段后仍在运行,则终止该命令.timeout命令是GNU核心实用程序软件包的一部分,该软件包几乎安装在所有Linux发行版中. NA ...

  9. ubuntu服务器上提示 To run a command as administrator (user “root“), use “sudo <command>“. See “ 解决方案

    ubuntu服务器上提示 To run a command as administrator (user "root"), use "sudo ". See & ...

  10. Linux终端出现:To run a command as administrator (user “root“), use “sudo <command>“.

    Linux终端出现:To run a command as administrator (user "root"), use "sudo ". 解决办法: to ...

最新文章

  1. 6个用于大数据分析处理的最好工具
  2. win 2008 控制共享文件夹大小_win10如何一键网络共享
  3. WINDOWS 端口查看
  4. Codeforces Round #579 (Div. 3) F1. Complete the Projects (easy version) 排序 + 贪心
  5. linux内核分析第五次实验
  6. Docker入门系列(一):目标和安排
  7. 利用python对excel文件进行操作_数据处理-对Excel文件读取和操作和存储(python版)...
  8. python数据科学手册_数据科学的Python
  9. unity怎么根据坐标绘制线_怎么根据阴线和阳线判断股票将稳步上涨或者下跌不止,K线组合...
  10. 为什么阿里规定需要在事务注解 @Transactional 中指定 rollbackFor?这...
  11. windows程序设计基础知识
  12. AI上推荐 之 xDeepFM模型(显隐性高阶特征交互的组合策略)
  13. 基于Netty实现群聊功能
  14. OpenCV怎么下载?OpenCV下载后怎么配置?
  15. 输出数组元素(c语言)
  16. EVIEWS:ARCH类、GARCH、EGARCH,建模估计沪深300指数2019-2020年交易日的波动率,并对结果进行分析。
  17. vue-awsome-swiper 使用跳坑
  18. CSS 设置 border 边框不占元素宽高
  19. AS(强直性脊柱炎)完全手册
  20. 大白菜装机教程win10_装机吧教你没有光盘的情况下:如何重装系统

热门文章

  1. JavaScript: The Good Parts 学习随笔(三)
  2. Struts2学习笔记(十) OGNL
  3. 文本主题发现(一)-- 数据预处理
  4. 你真的要收下这份大礼包!!
  5. dnsmasq安装配置
  6. 大肇庆!这里不愧是“黑客教父”郭盛华的故乡,人杰地灵,景色优美
  7. A. httpd常见的几个操作
  8. 防火墙设置对外开放port
  9. js,jquery的数字型字符串变量比较大小
  10. 关于 C# 请求 https 那点事