BrowserslistError: Unknown browser major

后端 未结 9 1664
南旧
南旧 2020-12-15 07:30

I\'m trying to use bootstrap 4 with my angular installation. i\'ve run npm install --save bootstrap@next but i have a break at runtime :

./node_modules/css-l         


        
9条回答
  •  不思量自难忘°
    2020-12-15 07:47

    I've upgraded to Angular CLI 1.7.x and it started working fine. I recommend this solution. I mean upgrading the Angular CLI and it should work for you!

    Another workaround is deleting the below lines from node_modules/bootstrap/package.json

    "browserslist": [
    "last 1 major version", <----- delete this line
    ">= 1%", <----- delete this line
    "Chrome >= 45",
    "Firefox >= 38",
    "Edge >= 12",
    "Explorer >= 10",
    "iOS >= 9",
    "Safari >= 9",
    "Android >= 4.4",
    "Opera >= 30"
    ],
    

提交回复
热议问题