标签:报错 pac gre iss 授权 nod code nal tps
webpack可视化插件,用来查看一共打了多少个包,每个包的体积和包里面的情况。
启动查看
npm run build --report
结果报错npm ERR! missing script: build
,后来发现package.json中scripts
参数为
"scripts": { "dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js", "build:prod": "cross-env NODE_ENV=production env_config=prod node build/build.js", "build:sit": "cross-env NODE_ENV=production env_config=sit node build/build.js", "lint": "eslint --ext .js,.vue src", "test": "npm run lint" },
所以正确的命令应该为
npm run build:prod --report
npm ERR! missing script: build
标签:报错 pac gre iss 授权 nod code nal tps
原文地址:https://www.cnblogs.com/deepalley/p/10982433.html