akveo / ngx-admin

Customizable admin dashboard template based on Angular 10+
https://akveo.github.io/ngx-admin/
MIT License
25.29k stars 7.96k forks source link

npm start error #269

Closed rahuldev761 closed 8 years ago

rahuldev761 commented 8 years ago

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

> npm start

> ng2-admin@0.5.0 start /home/rahul/Documents/codebase/dcnweb
> npm run server:dev

> ng2-admin@0.5.0 server:dev /home/rahul/Documents/codebase/dcnweb
> webpack-dev-server --config config/webpack.dev.js --progress --profile --watch --content-base src/

Error: listen EADDRINUSE 127.0.0.1:8000
    at Object.exports._errnoException (util.js:907:11)
    at exports._exceptionWithHostPort (util.js:930:20)
    at Server._listen2 (net.js:1250:14)
    at listen (net.js:1286:10)
    at net.js:1395:9
    at GetAddrInfoReqWrap.asyncCallback [as callback] (dns.js:64:16)
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:83:10)

npm ERR! Linux 3.13.0-95-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "run" "server:dev"
npm ERR! node v4.5.0
npm ERR! npm  v3.10.7
npm ERR! code ELIFECYCLE
npm ERR! ng2-admin@0.5.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.5.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!     /home/rahul/Documents/codebase/dcnweb/npm-debug.log

npm ERR! Linux 3.13.0-95-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "start"
npm ERR! node v4.5.0
npm ERR! npm  v3.10.7
npm ERR! code ELIFECYCLE
npm ERR! ng2-admin@0.5.0 start: `npm run server:dev`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the ng2-admin@0.5.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!     /home/rahul/Documents/codebase/dcnweb/npm-debug.log
nnixaa commented 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

rahuldev761 commented 8 years ago

You save my day and thank you for reply.

neerajrathod05 commented 8 years ago

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
ESadouski commented 8 years ago

@neerajrathod05 Looks like you have old version of Node. Try to update it.

neerajrathod05 commented 8 years ago

Yes, Esadouski thank you for your time :)