1、终端执行npm install 2、在项目根目录新建postcss.config.js文件,并对postcss进行配置: 1 2 3 4 5 module.exports = { plugins: { 'autoprefixer': {browsers: 'last 5 version'} } } 3、运行 npm run dev 试试