• 今天打包 Vue 项目,突然蹦出一个告警:

    Browserslist: caniuse-lite is outdated. Please run:$ npx browserslist@latest --update-db
    或者
    $ npm update
    
  • 按照提示操作,运行上面 npx browserslist@latest --update-db 能解决问题。

  • 但是有的版本会报错提示运行 npm update,但是运行 npm update 不能解决问题。

  • 于是查询了一下 npm 手册,得知是不能直接运行 npm update 的,必须带上包名,所以应该这样写命令:

    $ npm update caniuse-lite
    
  • 或者直接删了 node_modules/caniuse-lite 文件夹,然后重新安装:

    $ npm i -g caniuse-lite
    

  • 如果还不行,试试这个步骤。

    1、先删了 node_modules/caniuse-litenode_modules/browserslist 两个文件夹。

    2、然后运行下面的命令:

    $ npm i --save-dev caniuse-lite browserslist
    

Browserslist: caniuse-lite is outdated. Please run: npx ....相关推荐

  1. 控制台报错: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 ...

  2. 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 ...

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

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

  4. 【前端】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 ...

  5. 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 ...

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

  7. 安装sass-loader后报错:TypeError: this.getOptions is not a function

    运行命令: npm install --save-dev sass-loader 安装sass-loader后报错:TypeError: this.getOptions is not a functi ...

  8. nginx 部署antd_design_pro

    偶尔翻到antd_design_pro 发现管理端做的还是可以的,虽然是后端的程序员,但是也要了解一下前端的一些知识,那么首选我们看看如何部署nginx 我们在网上很容易下载到antd_design_ ...

  9. Module build failed: Error: Missing binding

    npm run dev启动前端工程以后终端出现超长报错,如下: > shop@2.4.0 dev > vue-cli-service serveINFO Starting developm ...

最新文章

  1. arcpy 批量投影_使用ArcPy对栅格数据进行批量投影坐标转换
  2. TensorFlow基础9-多层神经网络
  3. 浙二大数据朱继红_快看!浙经贸2020级新生趣味大数据来咯!
  4. C#String.Split (string[], StringSplitOptions) 多参数分割得到数组
  5. Hibernate注解之@Enumerated
  6. Django实战1-权限管理功能实现-01:搭建开发环境
  7. 从github clone文件: Failed to receive SOCKS4 connect request ack.
  8. ffmpeg 无法找到libpostproc的问题
  9. weblogic管理3 - 生产模式下免密码管理配置
  10. 7-2 错误处理概念
  11. android 获取录音时长_录音转文字,支持安卓和IOS和PC
  12. python round_python round()
  13. python3.6下载步骤_python3实现文件下载的方法总结
  14. 二阶无源低通滤波器幅频特性曲线_低通无源滤波器设计-详细
  15. Studio One5中文电脑音乐制作宿主软件保卫萝卜
  16. FlinkX数据同步
  17. android夜景录像模式,【图片】三种夜景拍摄手法优缺点对比,仅供参考【android吧】_百度贴吧...
  18. switch怎么切换服务器账号,怎么查看switch账号所属服务器
  19. CVE-2020-5135:SonicOS缓冲区溢出漏洞通告
  20. 判菜系、调众口、打分数,这一回,我们用大数据烧菜?

热门文章

  1. 移动端调用高德地图app和百度app
  2. latex使用各种系统字体
  3. 谈谈人工智能、围棋与数学
  4. pytorch中的kl divergence计算问题
  5. NFT合约分析:ERC721A
  6. 小额付费问答社区“略晓”上线iPhone客户端,可用语音回答提问
  7. 文本匹配相关方向打卡点总结
  8. 产品网站建设-企业产品网站建设基本流程及工作内容
  9. python小工具-使用百度语音接口进行划字朗读
  10. 【物联网】OpenWrt SCP工具的使用