scottksmith95 / beerlocker

Source code for Beer Locker tutorials
http://scottksmith.com/blog/2014/05/02/building-restful-apis-with-node/
426 stars 263 forks source link

Failed to load c++ bson extension, using pure JS version #6

Open Harris-Aaron opened 8 years ago

Harris-Aaron commented 8 years ago

Failed to load c++ bson extension, using pure JS version,how to solve this problem?

inaiman commented 6 years ago

Hi.

It is misconfiguration between installed programs and npm packages.

remove node_modules directory. run npm cache clean edit package.json file -> remove all dependencies: { "name": "beerlocker", "main": "server.js", "dependencies": { } }

run npm install. install required packages with npm f.e. npm install express --save npm install mongoose --save npm install body-parser --save