npm ERR! missing script:build error description

webpack-bundle-analyzer

The webpack visualization plug-in is used to view how many packages have been packaged, the volume of each package and the situation inside the package.

/**启动查看/
npm run build --report

The result is an error npm ERR! missing script: build , and later found that the scripts parameter in package.json is

insert image description here

correct:

npm run build:test --report
/*npm 允许在package.json文件里面,使用scripts字段定义脚本命令。*/

Access address: http://localhost:8888/
insert image description here

Guess you like

Origin blog.csdn.net/qq_42697806/article/details/118298739