Boa noite. Consegui seguir os procedimentos necessários para a aplicação funcionar corretamente e subir o servidor. Mas houve uma queda de energia e quando fui subir o servidor novamente com o comando
npm start
Houve um erro e recebi a seguinte informação:
> alurapic@1.0.0 start /home/nilson/Desktop/Estudo/Angular/01-alurapic/alurapic
> node server.js
Banco data.db pronto para uso
events.js:160
throw er; // Unhandled 'error' event
^
Error: listen EADDRINUSE :::3000
at Object.exports._errnoException (util.js:1012:11)
at exports._exceptionWithHostPort (util.js:1035:20)
at Server._listen2 (net.js:1252:14)
at listen (net.js:1288:10)
at Server.listen (net.js:1384:5)
at Object.<anonymous> (/home/nilson/Desktop/Estudo/Angular/01-alurapic/alurapic/server.js:5:24)
at Module._compile (module.js:541:32)
at Object.Module._extensions..js (module.js:550:10)
at Module.load (module.js:458:32)
at tryModuleLoad (module.js:417:12)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! alurapic@1.0.0 start: `node server.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the alurapic@1.0.0 start script 'node server.js'.
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 alurapic package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node server.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs alurapic
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls alurapic
npm ERR! There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/nilson/.npm/_logs/2018-01-10T21_08_11_128Z-debug.log
Pelo que procurei saber, parecve que houve um conflito devido a aplicação já ter sido iniciada anteriormente na porta 3000, mas não sei o que fazer.