Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm install (missing module: '../build/Release/bson') #142

Open
ghost opened this issue Mar 24, 2017 · 2 comments
Open

npm install (missing module: '../build/Release/bson') #142

ghost opened this issue Mar 24, 2017 · 2 comments
Labels
0.4 updates for @fabric/core

Comments

@ghost
Copy link

ghost commented Mar 24, 2017

Attempted to Install using:

git clone https://github.com/martindale/maki
cd maki
npm install
node maki.js
or
node yourapp.js (from the example)

produces:

D:\github\maki>node yourapp.js
{ Error: Cannot find module '../build/Release/bson'
    at Function.Module._resolveFilename (module.js:470:15)
    at Function.Module._load (module.js:418:25)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (D:\github\node_modules\mongoose\node_modules\bson\ext\index.js:15:10)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3) code: 'MODULE_NOT_FOUND' }
js-bson: Failed to load c++ bson extension, using pure JS version
[WARNING] Resource "Widget" attribute `name` has no type. You should consider adding one.
INTERNAL ERROR Error: failed to connect to [localhost:27017]
    at exports.ConnectionPool.<anonymous> (D:\github\node_modules\mongoose\node_modules\mongodb\lib\mongodb\connection\server.js:555:25)
    at emitThree (events.js:116:13)
    at exports.ConnectionPool.emit (events.js:194:7)
    at exports.Connection.<anonymous> (D:\github\node_modules\mongoose\node_modules\mongodb\lib\mongodb\connection\connection_pool.js:156:15)
    at emitTwo (events.js:106:13)
    at exports.Connection.emit (events.js:191:7)
    at Socket.<anonymous> (D:\github\node_modules\mongoose\node_modules\mongodb\lib\mongodb\connection\connection.js:534:10)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:188:7)
    at emitErrorNT (net.js:1281:8)

@martindale
Copy link
Member

Looks like Mongo isn't started? It'll be a little slower without the native bson package, but it should work fine once there's a datastore to connect to.

@ghost
Copy link
Author

ghost commented Mar 24, 2017

okay thanks, i'll give it another shot!

@martindale martindale added the 0.4 updates for @fabric/core label Jan 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.4 updates for @fabric/core
Projects
None yet
Development

No branches or pull requests

1 participant