generator-angular2 icon indicating copy to clipboard operation
generator-angular2 copied to clipboard

unable to run application

Open smart987 opened this issue 8 years ago • 0 comments

I have generated the application but when I run npm start, I am getting the following error.

sudo npm start

[email protected] start /Users/nmadasu/Projects/dashboard1 gulp dev

[12:58:59] Using gulpfile ~/Projects/dashboard1/gulpfile.js [12:58:59] Starting 'watch'... [12:58:59] Finished 'watch' after 26 ms [12:58:59] Starting 'serve'... [12:58:59] Webserver started at http://localhost:8000 [12:58:59] Finished 'serve' after 52 ms [12:58:59] Starting 'dev'... [12:58:59] Finished 'dev' after 202 μs events.js:160 throw er; // Unhandled 'error' event ^

Error: getaddrinfo ENOTFOUND localhost at errnoException (dns.js:28:10) at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:76:26)

npm ERR! Darwin 15.2.0 npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "start" npm ERR! node v7.2.0 npm ERR! npm v3.10.9 npm ERR! code ELIFECYCLE npm ERR! [email protected] start: gulp dev npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] start script 'gulp 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 dashboard-1 package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! gulp dev npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs dashboard-1 npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls dashboard-1 npm ERR! There is likely additional logging output above.

smart987 avatar Dec 02 '16 07:12 smart987