A vUE project packaging error occurred
PS D:\****\*****> npm run build
npm ERR! missing script: build
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\***\AppData\Roaming\npm-cache\_logs\2020-11-25T02_01_03_914Z-debug.log
“Build :prod” : “Ue -cli- Service build” under the scripts in package. Json
"scripts": {
"dev": "vue-cli-service serve",
"build:prod": "vue-cli-service build",
"build:stage": "vue-cli-service build --mode staging",
"preview": "node build/index.js --preview",
"lint": "eslint --ext .js,.vue src",
"test:unit": "jest --clearCache && vue-cli-service test:unit",
"test:ci": "npm run lint && npm run test:unit",
"svgo": "svgo -f src/icons/svg --config=src/icons/svgo.yml",
"new": "plop"
},
SO you can’t use NPM run build to package
instead
npm run build:prod --report
Read More:
- NPM run serve reported an error “NPM err! Missing script: start”
- NPM run build error solution
- Vue executes NPM run Dev and reports an error: missing script: dev
- gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2 gyp ERR! stack at ChildPr
- failed to find Build Tools revision 23.0.2 Install Build Tools 23.0.2 and sync project
- Failed to build bottleneck ERROR: Could not build wheels for bottleneck which use PEP 517
- HTML echo error, NPM run build error, HTML path error
- Solution: unity package failed. Commandinvocationfailure: gradle build failed
- Unity package encountered an error report about gradle build failed
- NPM run dev error (ERR: Code lifecycle)
- Docker installation sysdig error: running DKMS build failed, could’t find / var / lib / DKMS / sysdig / 0.27.1/build/ make.log
- Gyp err! Build error stack error
- 【ipfs-api】npm ERR! JSON.parse package.json must be actual JSON, not just JavaScript.
- Error failed to compile with 1 errors after finding NPM run dev
- Commandinvocationfailure: failed to build APK problem record
- Failed to find Build Tools revision 25.0.2
- The build report plug-in reported an error in importing unit script (BRT_ Util.cs :error CS1525: Unexpected symbol `;’, expecting `)’, or `,’)
- Error failed to build IOS project. We ran “xcodebuild” command but it exited wit
- Failed to find Build Tools revision 27.0.3
- gradle:failed to find Build Tools revision 29.0.2