Я запутался a) какая здесь реальная ошибка - кажется, некоторые люди с этим отсутствующим модулем все еще могут запустить свой сервер, б) Как я могу это исправить?Node.js Не удалось запустить сервер
Я пробовал:
rm -rf node_modules
npm cache clean
npm install
NPM-debug.log не предусмотрено никаких дополнительных ошибок/явно полезной информации. Это настройка для начинающих с помощью Express, которая делает небольшой запрос к MongoDB.
НПМ старт выход:
[email protected]:~/Documents/node/nodetest1$ npm start
> [email protected] start /home/david/Documents/node/nodetest1
> node ./bin/www
{ [Error: Cannot find module '../build/Release/bson'] code: 'MODULE_NOT_FOUND' }
js-bson: Failed to load c++ bson extension, using pure JS version
Port 3000 is already in use
npm ERR! Linux 4.4.0-36-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "start"
npm ERR! node v4.5.0
npm ERR! npm v3.10.7
npm ERR! code ELIFECYCLE
npm ERR! [email protected] start: `node ./bin/www`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script 'node ./bin/www'.
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 nodetest1 package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node ./bin/www
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs nodetest1
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls nodetest1
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/david/Documents/node/nodetest1/npm-debug.log