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:
- package.json And package- clock.json The difference between
- NPM run build error solution
- Module not found: Error: Can’t resolve ‘./$$_gendir/app/app.module.ngfactory’
- Has HTML webpack plugin been installed, or error: cannot find module ‘HTML webpack plugin’
- To solve the problem of NPM run eject error in react
- Quickly create a local typescript running environment.
- Blender graphic tutorial: loop cut for polygon modeling commands
- Markdown real time preview of sublime Text3
- Error: no such keg: / usr / local / cellular / node & install NVM & Brew install & oh my Zsh. Git install & git set alias & no bundle URL press
- Solve gitbook rangeerror: maximum call stack size exceeded
- Problems with vue project installation No ESLint configuration found
- AE ram preview requires 2 or more frameworks to solve playback
- Android studio reported an error in the release package: Lint found fatal errors while assembling a release target
- Error of oracel VM installing Windows Server 2012
- Annotations are not allowed here
- Solution to prompt “cannot find module ‘eslint config defaults / configurations / eslint’” when submitting with Git
- Yard error: found incompatible module
- Vue3 uses webpack bundle analyzer to analyze package files
- Maven skip unit test
- CSS Failed to decode downloaded font, OTS parsing error: Failed to convert WOFF 2.0 font to SFNT