Vue Package Error: npm ERR! missing script: build

An error is reported when packaging Vue files: NPM err! missing script: build

View the scripts parameters in the file package. JSON

Therefore, the run command at this time should be

npm run build:prod --report


Read More: