Closed rahuldev761 closed 8 years ago
Hey @rahuldev761, as per the error you already have another app attached to 8000 port at the moment, make sure the port is free or change the port in the configuration. Another similar issue for the reference https://github.com/akveo/ng2-admin/issues/85
You save my day and thank you for reply.
hey nnixaa, please help me too on this, I am also facing problem while npm start but slight different error message , please find it below
npm start
> ng2-admin@0.7.0 start /var/www/html/tour-of-heros/adminpanel/ng2
> npm run server:dev
> ng2-admin@0.7.0 server:dev /var/www/html/tour-of-heros/adminpanel/ng2
> webpack-dev-server --config config/webpack.dev.js --progress --profile --watch --content-base src/
/var/www/html/tour-of-heros/adminpanel/ng2/node_modules/script-ext-html-webpack-plugin/index.js:3
const INLINE = 'inline';
^^^^^
SyntaxError: Use of const in strict mode.
at Module._compile (module.js:439:25)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (/var/www/html/tour-of-heros/adminpanel/ng2/config/webpack.common.js:18:36)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (/var/www/html/tour-of-heros/adminpanel/ng2/config/webpack.dev.js:4:22)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at requireConfig (/var/www/html/tour-of-heros/adminpanel/ng2/node_modules/webpack/bin/convert-argv.js:111:18)
at /var/www/html/tour-of-heros/adminpanel/ng2/node_modules/webpack/bin/convert-argv.js:124:17
at Array.forEach (native)
at module.exports (/var/www/html/tour-of-heros/adminpanel/ng2/node_modules/webpack/bin/convert-argv.js:122:15)
at Object.<anonymous> (/var/www/html/tour-of-heros/adminpanel/ng2/node_modules/webpack-dev-server/bin/webpack-dev-server.js:148:48)
npm ERR! Linux 3.19.0-49-generic
npm ERR! argv "node" "/usr/local/bin/npm" "run" "server:dev"
npm ERR! node v0.10.25
npm ERR! npm v3.10.9
npm ERR! code ELIFECYCLE
npm ERR! ng2-admin@0.7.0 server:dev: `webpack-dev-server --config config/webpack.dev.js --progress --profile --watch --content-base src/`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ng2-admin@0.7.0 server:dev script 'webpack-dev-server --config config/webpack.dev.js --progress --profile --watch --content-base src/'.
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 ng2-admin package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! webpack-dev-server --config config/webpack.dev.js --progress --profile --watch --content-base src/
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs ng2-admin
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls ng2-admin
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /var/www/html/tour-of-heros/adminpanel/ng2/npm-debug.log
npm ERR! Linux 3.19.0-49-generic
npm ERR! argv "node" "/usr/local/bin/npm" "start"
npm ERR! node v0.10.25
npm ERR! npm v3.10.9
npm ERR! code ELIFECYCLE
npm ERR! ng2-admin@0.7.0 start: `npm run server:dev`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ng2-admin@0.7.0 start script 'npm run server:dev'.
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 ng2-admin package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! npm run server:dev
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs ng2-admin
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls ng2-admin
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /var/www/html/tour-of-heros/adminpanel/ng2/npm-debug.log
@neerajrathod05 Looks like you have old version of Node. Try to update it.
Yes, Esadouski thank you for your time :)
I just install modal dependency and run npm start.It through me Failed at the ng2-admin@0.5.0 server:dev script. I do not know why its occurs. Please help me out this.
error log