Browserslist: caniuse-lite is outdated. Please run next command `npm update caniuse-lite browserslist`

执行npm run build的时候报这个错,

D:\>npm run build

> [email protected] build D:\SVN\webTHHL\THHLOA\THHLWebUI
> node build/build.js

/ building for production...Browserslist: caniuse-lite is outdated. Please run next command `npm update caniuse-lite browserslist`
(node:13612) UnhandledPromiseRejectionWarninD: BrowserslistError: Unknown browser kaios
    at checkName (D:\SVN\webTHHL\THHLOA\THHLWebUI\node_modules\caniuse-api\node_modules\browserslist\index.js:132:20)
    at Function.select (D:\SVN\webTHHL\THHLOA\THHLWebUI\node_modules\caniuse-api\node_modules\browserslist\index.js:830:18)

根据提示,执行 npm update caniuse-lite browserslist,再 npm run build, 也不行。
将这两个组件通过  npm uninstall 移除再安装,仍不行。

从 https://www.npmjs.com/package/ 上查询这两个组件,最新版本都比当前使用的版本要高。是不是强制安装最新版本就可以了呢?

npm install [email protected]
npm install browserslist@4.9.1

接下来再运行 npm run build,成功。

原文地址:https://www.cnblogs.com/qkhh/p/12501679.html

时间: 2024-10-16 16:14:33

Browserslist: caniuse-lite is outdated. Please run next command `npm update caniuse-lite browserslist`的相关文章

The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods install

I. Project Cleanup In the project navigator, select your project Select your target Remove all libPods*.a in  Linked Frameworks and Libraries II. Update CocoaPods Launch Terminal and go to your project directory. Update CocoaPods using the command  p

使用otl,报错:mysql Commands out of sync; you can't run this command now

1.代码如下: void TestCache(otl_connect& otlConn) { try { char sql[1024] = {0}; sprintf(sql,"call test1(1)"); otl_stream stream(100, sql, otlConn,otl_implicit_select); int id; while(!stream.eof()) { stream>>id; char sql2[1024] = {0}; sprint

The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.

出现这样的错误: error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation. 具体如图: 我按照提示在终端打开工程,pod install 和 pod update 都试了一遍,然并卵.只好拿出杀手锏: Project -> Info -> Configurations -> Debug 改为 Pods.debug, Re

关于vue的npm run dev和npm run build

├─build │ ├─build.js │ ├─check-versions.js │ ├─dev-client.js │ ├─dev-server.js │ ├─utils.js │ ├─vue-loader.conf.js │ ├─webpack.base.conf.js │ ├─webpack.dev.conf.js │ ├─webpack.prod.conf.js │ └─webpack.test.conf.js ├─config │ ├─dev.env.js │ ├─index.js

[Docker] Run a command inside Docker container

For example you are working in a backend project, you have setup Dockerfile: FROM node:10.16.0-stretch ENV APP_DIR /app RUN mkdir $APP_DIR WORKDIR $APP_DIR COPY package.json yarn.lock $APP_DIR/ RUN yarn install --pure-lockfile COPY . $APP_DIR Here is

Run same command on all SQL Server databases without cursors

original: https://www.mssqltips.com/sqlservertip/1414/run-same-command-on-all-sql-server-databases-without-cursors/ --This query will return a listing of all tables in all databases on a SQL instance: DECLARE @command varchar(1000) SELECT @command =

修改allure测试报告名称

1.从github获取allure代码 https://github.com/allure-framework/allure2 2.安装gradle,用于打包jar brew install gradle 3.配置gradle环境变量 vim ~/.bash_profile export GRADLE_HOME=/usr/local/Cellar/gradle/5.5.1 export PATH=${GRADLE_HOME}/bin 4.生效环境变量 source ~/.bash_profile

Linux Kernel - Debug Guide (Linux内核调试指南 )

http://blog.csdn.net/blizmax6/article/details/6747601 linux内核调试指南 一些前言 作者前言 知识从哪里来 为什么撰写本文档 为什么需要汇编级调试 ***第一部分:基础知识*** 总纲:内核世界的陷阱 源码阅读的陷阱 代码调试的陷阱 原理理解的陷阱 建立调试环境 发行版的选择和安装 安装交叉编译工具 bin工具集的使用 qemu的使用 initrd.img的原理与制作 x86虚拟调试环境的建立 arm虚拟调试环境的建立 arm开发板调试环

程序员使用Node的十个技巧

从问世到现在将近20年,JavaScript一直缺乏其它有吸引力的编程语言,比如Python和Ruby,的很多优点:命令行界面,REPL,包管理器,以及组织良好的开源社区.感谢Node.js和npm,现如今的JavaScript鸟枪换炮了.Web开发者有了强大的新工具,接下来就看他们的想象力了. 下面这个提示和技巧清单,能让你和你的node程序保持快乐. 1. 用npm init开始新项目 npm有个init命令,可以引导你完成创建package.json文件的过程.即便你非常熟悉package