Estou mexendo em uma maquina Vagrant com S.O. Ubuntu 14.04.
Segui todos os passos do tutorial, mas quando fui rodar
$ npm start
Nao consegui prosseguir. Vi que a versao do nodejs estava muito antiga, entao dei um purge (apt-get purge nodejs*) e atualizei-a seguindo esse tutorial: https://www.digitalocean.com/community/tutorials/how-to-install-node-js-with-nvm-node-version-manager-on-a-vps
Feito isso, o nodejs ficou com a versao LTS 4.4.7. Bem, depois tentei rodar novamente o npm start e obtive esse erro abaixo. Alguma dica do que fazer?
vagrant@vagrant-ubuntu-trusty-64:/vagrant/alurapic$ npm start
alurapic@1.0.0 start /vagrant/alurapic node server.js
Banco data.db pronto para uso Servidor estutando na porta: 3000
/vagrant/alurapic/node_modules/nedb/lib/datastore.js:77 if (err) { throw err; } ^
Error: Failed to flush to storage at /vagrant/alurapic/node_modules/nedb/lib/storage.js:63:19 at FSReqWrap.oncomplete (fs.js:82:15)
npm ERR! Linux 3.13.0-65-generic npm ERR! argv "/home/vagrant/.nvm/v4.4.7/bin/node" "/home/vagrant/.nvm/v4.4.7/bin/npm" "start"
npm ERR! node v4.4.7
npm ERR! npm v2.15.8
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! 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 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! /vagrant/alurapic/npm-debug.log