Error: npm ERR! missing script: build,It was later discovered that the scripts parameter in package.json is:
“scripts”: {undefined
“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”
},So the right commands is:
“scripts”: {undefined
“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”
},So the right commands is:
npm run build:prod --report
Similar Posts:
- npm ERR! missing script: build [How to Solve]
- npm ERR! missing script: build
- Error: jest not implemented window.open() [How to Solve]
- MAC VS Error: SDK package not found “Microsoft.NET.SDK [Solved]
- [Solved] Vue3.X version error: Parsing error: Parsing error: Unexpected token
- The Android studio preview interface reports an error render problem
- [Solved] ESLint Error: Failed to load config “standard” to extend from
- Delphi 10.4.2 Startup Error: socket error [How to Solve]
- Error accessing horizon after installing dashboard in openstack end of script output before headers: django.wsgi
- Expected indentation of 8 spaces but found [How to Solve]