내가 여기에 도움, 난 NPM 창 (10)의 내 터미널에 구축 실행 입력 한 후, 여기에 오류가 있습니다NPM 실행 빌드 오류
'imagemin 나타납니다 필요하세요 '이 (가) 내부 또는 외부 명령 인 작동 가능 프로그램 또는 배치 파일로 인식되지 않습니다. npm ERR! ELIFECYCLE npm ERR 코드를 작성하십시오. 오류 1npm ERR! [email protected] imagemin :
imagemin img/* -o dist/img
npm ERR! 종료 상태 1 npm ERR! npm ERR! [email protected] imagemin 스크립트 에서 실패했습니다. npm ERR! 이것은 아마도 npm의 문제가 아닙니다. 위의 추가 로깅 출력이있을 수 있습니다. npm ERR! 이 실행의 전체 로그는 다음에서 찾을 수 있습니다. npm ERR!
C : \ Users \ ndunga \ AppData \ Roaming \ npm-cache_logs \ 2017-10-19T16_46_04_328Z-debug.log npm ERR! ELIFECYCLE npm ERR 코드를 작성하십시오. errno 1 npm ERR! [email protected] 빌드 :npm run clean && npm run copyfonts && npm run imagemin && npm run usemin
npm ERR! 종료 상태 1 npm ERR! npm ERR! [email protected] 빌드 스크립트 에서 실패했습니다. npm ERR! 이것은 아마도 npm이있는 의 문제가 아닙니다. 위의 추가 로깅 출력이있을 수 있습니다. npm ERR! 이 실행에 대한 로그는 다음에서 찾을 수 있습니다. npm ERR!
C : \ 사용자 \ ndunga \의 AppData \ 로밍 \ NPM-cache_logs \ 2017-10-19T16_46_04_381Z-debug.log를 여기
내 package.json 파일이
{
"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.2.2",
"node-sass": "^4.5.3",
"onchange": "^3.2.1",
"parallelshell": "^3.0.2",
"rimraf": "^2.6.2",
"uglifyjs": "^2.4.11",
"usemin-cli": "^0.5.1"
},
"dependencies": {
"bootstrap": "^4.0.0-alpha.6",
"font-awesome": "^4.7.0"
}
}