错误在./node_modules/bootstrap/dist/css/bootstrap.css中

时间:2017-12-31 03:47:25

标签: angular

我正在使用角5:

build : ng build --prod

错误:

10% building modules 4/6 modules 2 active ...ules/bootstrap/dist/css/bootstrap.css Unknown error from PostCSS plugin. Your current PostCSS version is 6.0.14, but autoprefixer uses
5.2.18.

也许这是下面错误的来源。

69% building modules 768/771 modules 3 active ...ules/bootstrap/dist/css/bootstrap.css Unknown error from PostCSS plugin. Your current PostCSS version is 6.0.14, but autoprefixer uses
5.2.18.

也许这是下面错误的来源。

ERROR in ./node_modules/bootstrap/dist/css/bootstrap.css Module build failed: BrowserslistError: Unknown browser major

1 个答案:

答案 0 :(得分:3)

对我有用:

  1. 编辑node_modules \ bootstrap \ package.json
  2. 删除以下行:
  3.   

    "最后一个主要版本",

         

    "> = 1%",