npm ошибка сборки для веб-проекта UX Framework с начальной загрузкой - PullRequest
0 голосов
/ 25 апреля 2020

Мне нужна помощь в выяснении этого

После того, как я наберу npm run build на моем терминале windows 10, я получаю следующие ошибки:

npm ERR! Не удалось выполнить сценарий confusion@1.0.0 usemin.

npm ERR! Не удалось выполнить сценарий confusion@1.0.0 usemin. npm ОШИБКА! Это, вероятно, не проблема с npm. Вероятно, есть дополнительные выходные данные регистрации.

npm ERR! Полный журнал этого прогона можно найти в: npm ERR! C: \ Users \ hamza \ AppData \ Roaming \ npm -cache_logs \ 2020-04-25T15_46_13_280Z-debug.log npm ОШИБКА! код ELIFECYCLE npm ОШИБКА! errno 1 npm ERR! confusion@1.0.0 сборка: npm run clean && npm run copyfonts && npm run imagemin && npm run usemin npm ОШИБКА! Статус выхода 1 npm ERR! npm ERR! Ошибка в скрипте сборки confusion@1.0.0. npm ERR! Вероятно, это не проблема с npm. Вероятно, есть дополнительные выходные данные регистрации. Полный журнал этого прогона можно найти в: npm ERR! C: \ Users \ hamza \ AppData \ Roaming \ npm -cache_logs \ 2020-04-25T15_46_13_351Z-debug.log

// установка прошла нормально

Вот мой пакет . json file

Вот мой пакет. json file

{
  "name": "confusion",
  "version": "1.0.0",
  "description": "This is a website for Ristorante Con Fusion",
  "main": "index.html",
  "scripts": {
    "start": "npm run watch:all",
    "test": "echo \"Error: no test specified\" && exit 1",
    "lite": "lite-server",
    "scss": "node-sass -o css/ css/",
    "watch:scss": "onchange \"css/*.scss\" -- npm run scss",
    "watch:all": "parallelshell \"npm run watch:scss\" \"npm run lite\"",
    "clean": "rimraf dist",
    "copyfonts": "copyfiles -f node_modules/font-awesome/fonts/* dist/fonts",
    "imagemin": "imagemin img/* -o 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 copyfonts && npm run imagemin && npm run usemin"
  },
  "author": "",
  "license": "ISC",
  "devDependencies": {
    "cssmin": "^0.4.3",
    "htmlmin": "0.0.7",
    "lite-server": "^2.3.0",
    "node-sass": "^4.7.2",
    "onchange": "^3.3.0",
    "parallelshell": "^3.0.1",
    "rimraf": "^2.6.2",
    "uglifyjs": "^2.4.11",
    "usemin-cli": "^0.5.1"
  },
  "dependencies": {
    "bootstrap": "^4.0.0",
    "font-awesome": "^4.7.0"
  }
}
...