Criei uma aplicação baseada no que aprendi no curso de angular, mas ao digitar npm start, é retornado o erro abaixo. npm start
parametrizacao@1.0.0 start C:\Users\t711410\Desktop\RafaelBonilha\Angular\parametrizacao\server node server.js
Banco data.db pronto para uso C:\Users\t711410\Desktop\RafaelBonilha\Angular\parametrizacao\client Servidor escutando na porta: 3000 _http_outgoing.js:356 throw new Error('Can\'t set headers after they are sent.'); ^
Error: Can't set headers after they are sent. at ServerResponse.OutgoingMessage.setHeader (_http_outgoing.js:356:11) at ServerResponse.header (C:\Users\t711410\Desktop\RafaelBonilha\Angular\parametrizacao\server\node_modules\express\lib\response.js:718:10) at ServerResponse.json (C:\Users\t711410\Desktop\RafaelBonilha\Angular\parametrizacao\server\node_modules\express\lib\response.js:246:10) at C:\Users\t711410\Desktop\RafaelBonilha\Angular\parametrizacao\server\app\api\index.js:41:13 at newArguments.(anonymous function) (C:\Users\t711410\Desktop\RafaelBonilha\Angular\parametrizacao\server\node_modules\nedb\lib\executor.js:29 :17) at Cursor.execFn (C:\Users\t711410\Desktop\RafaelBonilha\Angular\parametrizacao\server\node_modules\nedb\lib\datastore.js:484:12) at callback (C:\Users\t711410\Desktop\RafaelBonilha\Angular\parametrizacao\server\node_modules\nedb\lib\cursor.js:126:19) at C:\Users\t711410\Desktop\RafaelBonilha\Angular\parametrizacao\server\node_modules\nedb\lib\cursor.js:193:12 at C:\Users\t711410\Desktop\RafaelBonilha\Angular\parametrizacao\server\node_modules\nedb\lib\datastore.js:329:14 at Object.async.eachSeries (C:\Users\t711410\Desktop\RafaelBonilha\Angular\parametrizacao\server\node_modules\nedb\node_modules\async\lib\async .js:130:20)
npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "start"
npm ERR! node v6.11.4
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! parametrizacao@1.0.0 start: node server.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the parametrizacao@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 parametrizacao 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 parametrizacao
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls parametrizacao
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request: npm ERR! C:\Users\t711410\Desktop\RafaelBonilha\Angular\parametrizacao\server\npm-debug.log
Agradeço desde já pela ajuda neste caso, já pesquisei na internet e não achei nenhuma solução para este problema.