删除.browserslistrc文件就好了

$ npm run dev

> bootstrap-vue@1.0.0 dev E:aawork1work2019.2ootstrap-vue
> webpack-dev-server --inline --progress --config build/webpack.dev.conf.js

13% building modules 33/37 modules 4 active ...rap-vuesrccomponentsHelloWorld.vue{ parser: "b 15% building modules 42/45 modules 3 active ...9.2ootstrap-vuesrcassetslogo.png{ BrowserslistError: E:aawork1work2019.2ootstrap-vue contains both .browserslistrc and package.json with browsers
at E:aawork1work2019.2ootstrap-vue ode_modules\_browserslist@2.11.3@browserslist ode.js:192:15
at eachParent (E:aawork1work2019.2ootstrap-vue ode_modules\_browserslist@2.11.3@browserslist ode.js:43:18)
at Object.findConfig (E:aawork1work2019.2ootstrap-vue ode_modules\_browserslist@2.11.3@browserslist ode.js:172:20)
at Object.loadConfig (E:aawork1work2019.2ootstrap-vue ode_modules\_browserslist@2.11.3@browserslist ode.js:126:37)
at browserslist (E:aawork1work2019.2ootstrap-vue ode_modules\_browserslist@2.11.3@browserslistindex.js:194:22)
at Browsers.parse (E:aawork1work2019.2ootstrap-vue ode_modules\_autoprefixer@7.2.6@autoprefixerlibrowsers.js:61:16)
at new Browsers (E:aawork1work2019.2ootstrap-vue ode_modules\_autoprefixer@7.2.6@autoprefixerlibrowsers.js:52:30)
at loadPrefixes (E:aawork1work2019.2ootstrap-vue ode_modules\_autoprefixer@7.2.6@autoprefixerlibautoprefixer.js:70:24)
at plugin (E:aawork1work2019.2ootstrap-vue ode_modules\_autoprefixer@7.2.6@autoprefixerlibautoprefixer.js:81:24)
at LazyResult.run (E:aawork1work2019.2ootstrap-vue ode_modules\_postcss@6.0.23@postcssliblazy-result.js:277:20)
at LazyResult.asyncTick (E:aawork1work2019.2ootstrap-vue ode_modules\_postcss@6.0.23@postcssliblazy-result.js:192:32)
at LazyResult.asyncTick (E:aawork1work2019.2ootstrap-vue ode_modules\_postcss@6.0.23@postcssliblazy-result.js:204:22)
at E:aawork1work2019.2ootstrap-vue ode_modules\_postcss@6.0.23@postcssliblazy-result.js:197:27
at <anonymous>
name: 'BrowserslistError',
message: 'E:\aawork\1work\2019.2\bootstrap-vue contains both .browserslistrc and package.json with browsers',
browserslist: true } 15% building modules 43/45 modules 2 active ...9.2ootstrap-vuesrcassetslogo.png{ BrowserslistError: E:aawork1work2019.2ootstrap-vue contains both .browserslistrc and package.json with browsers
at E:aawork1work2019.2ootstrap-vue ode_modules\_browserslist@2.11.3@browserslist ode.js:192:15
at eachParent (E:aawork1work2019.2ootstrap-vue ode_modules\_browserslist@2.11.3@browserslist ode.js:43:18)
at Object.findConfig (E:aawork1work2019.2ootstrap-vue ode_modules\_browserslist@2.11.3@browserslist ode.js:172:20)
at Object.loadConfig (E:aawork1work2019.2ootstrap-vue ode_modules\_browserslist@2.11.3@browserslist ode.js:126:37)
at browserslist (E:aawork1work2019.2ootstrap-vue ode_modules\_browserslist@2.11.3@browserslistindex.js:194:22)
at Browsers.parse (E:aawork1work2019.2ootstrap-vue ode_modules\_autoprefixer@7.2.6@autoprefixerlibrowsers.js:61:16)
at new Browsers (E:aawork1work2019.2ootstrap-vue ode_modules\_autoprefixer@7.2.6@autoprefixerlibrowsers.js:52:30)
at loadPrefixes (E:aawork1work2019.2ootstrap-vue ode_modules\_autoprefixer@7.2.6@autoprefixerlibautoprefixer.js:70:24)
at plugin (E:aawork1work2019.2ootstrap-vue ode_modules\_autoprefixer@7.2.6@autoprefixerlibautoprefixer.js:81:24)
at LazyResult.run (E:aawork1work2019.2ootstrap-vue ode_modules\_postcss@6.0.23@postcssliblazy-result.js:277:20)
at LazyResult.asyncTick (E:aawork1work2019.2ootstrap-vue ode_modules\_postcss@6.0.23@postcssliblazy-result.js:192:32)
at LazyResult.asyncTick (E:aawork1work2019.2ootstrap-vue ode_modules\_postcss@6.0.23@postcssliblazy-result.js:204:22)
at E:aawork1work2019.2ootstrap-vue ode_modules\_postcss@6.0.23@postcssliblazy-result.js:197:27
at <anonymous>
name: 'BrowserslistError',
message: 'E:\aawork\1work\2019.2\bootstrap-vue contains both .browserslistrc and package.json with browsers',
browserslist: true } 94% asset optimization ERROR Failed to compile with 2 errors16:23:19

error in ./src/App.vue

Module build failed: BrowserslistError: E:aawork1work2019.2ootstrap-vue contains both .browserslistrc and package.json with browsers
at E:aawork1work2019.2ootstrap-vue ode_modules\_browserslist@2.11.3@browserslist ode.js:192:15
at eachParent (E:aawork1work2019.2ootstrap-vue ode_modules\_browserslist@2.11.3@browserslist ode.js:43:18)
at Object.findConfig (E:aawork1work2019.2ootstrap-vue ode_modules\_browserslist@2.11.3@browserslist ode.js:172:20)
at Object.loadConfig (E:aawork1work2019.2ootstrap-vue ode_modules\_browserslist@2.11.3@browserslist ode.js:126:37)
at browserslist (E:aawork1work2019.2ootstrap-vue ode_modules\_browserslist@2.11.3@browserslistindex.js:194:22)
at Browsers.parse (E:aawork1work2019.2ootstrap-vue ode_modules\_autoprefixer@7.2.6@autoprefixerlibrowsers.js:61:16)
at new Browsers (E:aawork1work2019.2ootstrap-vue ode_modules\_autoprefixer@7.2.6@autoprefixerlibrowsers.js:52:30)
at loadPrefixes (E:aawork1work2019.2ootstrap-vue ode_modules\_autoprefixer@7.2.6@autoprefixerlibautoprefixer.js:70:24)
at plugin (E:aawork1work2019.2ootstrap-vue ode_modules\_autoprefixer@7.2.6@autoprefixerlibautoprefixer.js:81:24)
at LazyResult.run (E:aawork1work2019.2ootstrap-vue ode_modules\_postcss@6.0.23@postcssliblazy-result.js:277:20)
at LazyResult.asyncTick (E:aawork1work2019.2ootstrap-vue ode_modules\_postcss@6.0.23@postcssliblazy-result.js:192:32)
at LazyResult.asyncTick (E:aawork1work2019.2ootstrap-vue ode_modules\_postcss@6.0.23@postcssliblazy-result.js:204:22)
at E:aawork1work2019.2ootstrap-vue ode_modules\_postcss@6.0.23@postcssliblazy-result.js:197:27
at <anonymous>

@ ./node_modules/_vue-style-loader@3.1.2@vue-style-loader!./node_modules/_css-loader@0.28.11@css-loader?{"sourceMap":true}!./node_modules/_vue-loader@13.7.3@vue-loader/lib/style-compiler?{"vue":true,"id":"data-v-7ba5bd90","scoped":false,"hasInlineConfig":false}!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=styles&index=0!./src/App.vue 4:14-354 13:3-17:5 14:22-362
@ ./src/App.vue
@ ./src/main.js
@ multi ./node_modules/_webpack-dev-server@2.11.3@webpack-dev-server/client?http://localhost:8093 webpack/hot/dev-server ./src/main.js

error in ./src/components/HelloWorld.vue

Module build failed: BrowserslistError: E:aawork1work2019.2ootstrap-vue contains both .browserslistrc and package.json with browsers
at E:aawork1work2019.2ootstrap-vue ode_modules\_browserslist@2.11.3@browserslist ode.js:192:15
at eachParent (E:aawork1work2019.2ootstrap-vue ode_modules\_browserslist@2.11.3@browserslist ode.js:43:18)
at Object.findConfig (E:aawork1work2019.2ootstrap-vue ode_modules\_browserslist@2.11.3@browserslist ode.js:172:20)
at Object.loadConfig (E:aawork1work2019.2ootstrap-vue ode_modules\_browserslist@2.11.3@browserslist ode.js:126:37)
at browserslist (E:aawork1work2019.2ootstrap-vue ode_modules\_browserslist@2.11.3@browserslistindex.js:194:22)
at Browsers.parse (E:aawork1work2019.2ootstrap-vue ode_modules\_autoprefixer@7.2.6@autoprefixerlibrowsers.js:61:16)
at new Browsers (E:aawork1work2019.2ootstrap-vue ode_modules\_autoprefixer@7.2.6@autoprefixerlibrowsers.js:52:30)
at loadPrefixes (E:aawork1work2019.2ootstrap-vue ode_modules\_autoprefixer@7.2.6@autoprefixerlibautoprefixer.js:70:24)
at plugin (E:aawork1work2019.2ootstrap-vue ode_modules\_autoprefixer@7.2.6@autoprefixerlibautoprefixer.js:81:24)
at LazyResult.run (E:aawork1work2019.2ootstrap-vue ode_modules\_postcss@6.0.23@postcssliblazy-result.js:277:20)
at LazyResult.asyncTick (E:aawork1work2019.2ootstrap-vue ode_modules\_postcss@6.0.23@postcssliblazy-result.js:192:32)
at LazyResult.asyncTick (E:aawork1work2019.2ootstrap-vue ode_modules\_postcss@6.0.23@postcssliblazy-result.js:204:22)
at E:aawork1work2019.2ootstrap-vue ode_modules\_postcss@6.0.23@postcssliblazy-result.js:197:27
at <anonymous>

@ ./node_modules/_vue-style-loader@3.1.2@vue-style-loader!./node_modules/_css-loader@0.28.11@css-loader?{"sourceMap":true}!./node_modules/_vue-loader@13.7.3@vue-loader/lib/style-compiler?{"vue":true,"id":"data-v-469af010","scoped":true,"hasInlineConfig":false}!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=styles&index=0!./src/components/HelloWorld.vue 4:14-369 13:3-17:5 14:22-377
@ ./src/components/HelloWorld.vue
@ ./src/router/index.js
@ ./src/main.js
@ multi ./node_modules/_webpack-dev-server@2.11.3@webpack-dev-server/client?http://localhost:8093 webpack/hot/dev-server ./src/main.js

原文地址:https://www.cnblogs.com/colorful-paopao1/p/10334649.html