Olá,
Quando dou o npm start, aparece o seguinte problema no console
alurapic@1.0.0 start /Users/Guilherme/Desktop/alurapic node server.js
consign v0.1.2 Initialized in app + ./api/foto.js + ./api/grupo.js + ./routes/foto.js + ./routes/grupo.js Servidor iniciado
/Users/Guilherme/Desktop/alurapic/node_modules/mongodb/lib/server.js:235 process.nextTick(function() { throw err; }) ^ Error: connect ECONNREFUSED 127.0.0.1:27017 at Object.exports._errnoException (util.js:890:11) at exports._exceptionWithHostPort (util.js:913:20) at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1059:14)
npm ERR! Darwin 16.3.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "start"
npm ERR! node v5.10.1
npm ERR! npm v3.8.3
npm ERR! code ELIFECYCLE
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! Please include the following file with any support request: npm ERR! /Users/Guilherme/Desktop/alurapic/npm-debug.log GuilhermeMacBook:alurapic gui$
O codigo está exatamente igual o da video, aula, copiei e colei apos tentar bastante, na esperança que fosse algum problema de digitação, mas não é. =/