命令npm run build显示此错误

时间:2020-08-07 17:48:24

标签: npm npm-install npm-scripts

This is the error after I run the build command

下面是我在{em> package.json 中的scripts

"scripts": {
  "start": "npm run lite",                           
  "test": "echo \"Error: no test specified\" && exit 1",           
  "lite": "lite-server",               
  "scss": "node-sass -o css/ css/",           
  "clean": "rimraf dist",                      
  "copyfonts": "copyfiles -f node_modules/font-awesome/fonts/* dist/fonts",         
  "imagemin": "imagemin img/* --out-dir='dist/img'",                
  "usemin": "usemin contactus.html -d dist --htmlmin -o dist/contactus.html && usemin aboutus.html -d dist --htmlmin -o dist/aboutus.html && usemin index.html -d dist --htmlmin -o dist/index.html",          
  "build": "npm run clean && npm run imagemin && npm run copyfonts && npm run usemin"            
}

0 个答案:

没有答案