zoukankan      html  css  js  c++  java
  • Browserslist: caniuse-lite is outdated. Please run next command `npm update caniuse-lite browserslist`

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

    D:>npm run build

    > vue-admin-template@3.8.0 build D:SVNwebTHHLTHHLOATHHLWebUI
    > 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:SVNwebTHHLTHHLOATHHLWebUI ode_modulescaniuse-api ode_modulesrowserslistindex.js:132:20)
        at Function.select (D:SVNwebTHHLTHHLOATHHLWebUI ode_modulescaniuse-api ode_modulesrowserslistindex.js:830:18)

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

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

    npm install caniuse-lite@1.0.30001035
    npm install browserslist@4.9.1

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

  • 相关阅读:
    UML建模之用例图关系
    python模块介绍
    Delphi操作XML(七)
    Delphi操作XML(一)
    Delphi操作XML(五)
    Delphi操作XML(六)
    Delphi操作XML(二)
    Delphi操作XML(四)
    Delphi操作XML(三)
    决心好好写cnblogs
  • 原文地址:https://www.cnblogs.com/qkhh/p/12501679.html
Copyright © 2011-2022 走看看