meanstacktutorial icon indicating copy to clipboard operation
meanstacktutorial copied to clipboard

program won't run

Open matthewboman opened this issue 8 years ago • 3 comments

when I try node server or node server.js I get this error:

{ Error: Cannot find module '../build/Release/bson'
    at Function.Module._resolveFilename (module.js:440:15)
    at Function.Module._load (module.js:388:25)
    at Module.require (module.js:468:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/home/crash/js/node/LCT/node_modules/bson/ext/index.js:15:10)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)
    at Function.Module._load (module.js:409:3) code: 'MODULE_NOT_FOUND' }
js-bson: Failed to load c++ bson extension, using pure JS version
/home/crash/js/node/LCT/node_modules/mongojs/index.js:662
    var p = Proxy.create({
              ^

TypeError: Proxy.create is not a function
    at connect (/home/crash/js/node/LCT/node_modules/mongojs/index.js:662:19)
    at Object.<anonymous> (/home/crash/js/node/LCT/server.js:6:10)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)
    at Function.Module._load (module.js:409:3)
    at Function.Module.runMain (module.js:575:10)
    at startup (node.js:160:18)
    at node.js:456:3

matthewboman avatar Jul 04 '16 21:07 matthewboman

i get the same error. :(

deepakapte06 avatar Sep 03 '16 21:09 deepakapte06

In package.json change to "mongojs": "*" to get lastest version.

After: execute "npm update"

Worked to me..

snowfake avatar Oct 09 '16 16:10 snowfake

@snowfake Thank you !

ghiitais avatar May 13 '17 09:05 ghiitais