npm run build时报错“caniuse-lite is outdated”

问题:

Building for production...Browserslist: caniuse-lite is outdated. Please run next command `yarn upgrade caniuse-lite browserslist`

解答:

npm i autoprefixer@latest 
npm i caniuse-lite@latest 
npm i caniuse-lite browserslist@latest

你可能感兴趣的:(npm run build时报错“caniuse-lite is outdated”)