打开命令行: 首先执行npm install 不执行会报错: npm run build:prod --scripts-prepend-node-path=auto 然后再这样执行就是以生产环境模式打包了.