Browserslist: caniuse-lite is outdated. Please run: npx ....
今天打包
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-lite
和node_modules/browserslist
两个文件夹。2、然后运行下面的命令:
$ npm i --save-dev caniuse-lite browserslist
Browserslist: caniuse-lite is outdated. Please run: npx ....相关推荐
- 控制台报错: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 ...
- 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 ...
- Browserslist: caniuse-lite is outdated. Please run:npx browserslist@latest --update-db
使用yarn start 运行项目出现警告⚠️ Browserslist: caniuse-lite is outdated. Please run: npx browserslist@latest ...
- 【前端】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 ...
- 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 ...
- uni-app系列(十):Browserslist: caniuse-lite is outdated. Please run next command `npm update`
- 安装sass-loader后报错:TypeError: this.getOptions is not a function
运行命令: npm install --save-dev sass-loader 安装sass-loader后报错:TypeError: this.getOptions is not a functi ...
- nginx 部署antd_design_pro
偶尔翻到antd_design_pro 发现管理端做的还是可以的,虽然是后端的程序员,但是也要了解一下前端的一些知识,那么首选我们看看如何部署nginx 我们在网上很容易下载到antd_design_ ...
- Module build failed: Error: Missing binding
npm run dev启动前端工程以后终端出现超长报错,如下: > shop@2.4.0 dev > vue-cli-service serveINFO Starting developm ...
最新文章
- arcpy 批量投影_使用ArcPy对栅格数据进行批量投影坐标转换
- TensorFlow基础9-多层神经网络
- 浙二大数据朱继红_快看!浙经贸2020级新生趣味大数据来咯!
- C#String.Split (string[], StringSplitOptions) 多参数分割得到数组
- Hibernate注解之@Enumerated
- Django实战1-权限管理功能实现-01:搭建开发环境
- 从github clone文件: Failed to receive SOCKS4 connect request ack.
- ffmpeg 无法找到libpostproc的问题
- weblogic管理3 - 生产模式下免密码管理配置
- 7-2 错误处理概念
- android 获取录音时长_录音转文字,支持安卓和IOS和PC
- python round_python round()
- python3.6下载步骤_python3实现文件下载的方法总结
- 二阶无源低通滤波器幅频特性曲线_低通无源滤波器设计-详细
- Studio One5中文电脑音乐制作宿主软件保卫萝卜
- FlinkX数据同步
- android夜景录像模式,【图片】三种夜景拍摄手法优缺点对比,仅供参考【android吧】_百度贴吧...
- switch怎么切换服务器账号,怎么查看switch账号所属服务器
- CVE-2020-5135:SonicOS缓冲区溢出漏洞通告
- 判菜系、调众口、打分数,这一回,我们用大数据烧菜?