fnakstad / angular-client-side-auth

One way to implement authentication/authorization in Angular applications
http://angular-client-side-auth.herokuapp.com/
MIT License
1.63k stars 346 forks source link

npm run build error #106

Open mostafahamed15 opened 6 years ago

mostafahamed15 commented 6 years ago

please guys i donot know what is the wrong in this code ``{ "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 imagemin && npm run copyfonts && npm run usemin" }, "author": "", "license": "ISC", "devDependencies": { "cssmin": "^0.4.3", "grunt": "^1.0.1", "grunt-sass": "^2.0.0", "htmlmin": "0.0.7", "jit-grunt": "^0.10.0", "less": "^2.7.2", "lite-server": "^2.2.2", "node-sass": "^4.5.3", "onchange": "^3.2.1", "parallelshell": "^3.0.1", "rimraf": "^2.6.2", "time-grunt": "^1.4.0", "uglifyjs": "^2.4.11", "usemin-cli": "^0.5.1" }, "dependencies": { "bootstrap": "^4.0.0-alpha.6", "font-awesome": "^4.7.0" } } when i write npm run build error ocured:

confusion@1.0.0 build F:\web specialization\bootstrap\week1\Bootstrap4\conFusion npm run clean && npm run imagemin && npm run copyfonts && npm run usemin

confusion@1.0.0 clean F:\web specialization\bootstrap\week1\Bootstrap4\conFusion rimraf dist

confusion@1.0.0 imagemin F:\web specialization\bootstrap\week1\Bootstrap4\conFusion imagemin img/* -o dist/img

'imagemin' is not recognized as an internal or external command, operable program or batch file.

npm ERR! Windows_NT 10.0.14393 npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "run" "imagemin" npm ERR! node v6.11.2 npm ERR! npm v3.10.10 npm ERR! code ELIFECYCLE npm ERR! confusion@1.0.0 imagemin: imagemin img/* -o dist/img npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the confusion@1.0.0 imagemin script 'imagemin img/ -o dist/img'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the confusion package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! imagemin img/ -o dist/img npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs confusion npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls confusion npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! F:\web specialization\bootstrap\week1\Bootstrap4\conFusion\npm-debug.log

npm ERR! Windows_NT 10.0.14393 npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "run" "build" npm ERR! node v6.11.2 npm ERR! npm v3.10.10 npm ERR! code ELIFECYCLE npm ERR! confusion@1.0.0 build: npm run clean && npm run imagemin && npm run copyfonts && npm run usemin npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the confusion@1.0.0 build script 'npm run clean && npm run imagemin && npm run copyfonts && npm run usemin'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the confusion package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! npm run clean && npm run imagemin && npm run copyfonts && npm run usemin npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs confusion npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls confusion npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! F:\web specialization\bootstrap\week1\Bootstrap4\conFusion\npm-debug.log

antoinecomp commented 6 years ago

I have a related issue which I asked about on Stackoverflow en espanol. Tell me if you found any answers to your problem

mostafahamed15 commented 6 years ago

the solution is you want to go variable invironoment in your computer and ad the file path to it

soso-maitha commented 5 years ago

i am getting same issue.