Keystone-classic: Keystone doesn't start after Node update

Created on 20 Jan 2017  路  12Comments  路  Source: keystonejs/keystone-classic

I am running keystone 0.3.19 and I just installed Node 7.4.0 after previously using 6.9.0.
Now I am no longer able to start the server. The terminal output just shows the bson error:

{ 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> (/Volumes/HDD/Users/kimasendorf/Development/Node/bromer-kunst/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)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/Volumes/HDD/Users/kimasendorf/Development/Node/bromer-kunst/node_modules/bson/lib/bson/index.js:3:24)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32) code: 'MODULE_NOT_FOUND' }
js-bson: Failed to load c++ bson extension, using pure JS version

And stops there..

Any ideas how I could find the bug?

bug help wanted

Most helpful comment

@kimasendorf I update mongoose version in

node_modules/keystone/package.json +110

to 4.7.7
and then:

npm i

I am not sure yet if it not add some new bugs :)

All 12 comments

Have same issue

@kimasendorf #3798

so you have manually installed the latest mongoose version via npm?

@kimasendorf I update mongoose version in

node_modules/keystone/package.json +110

to 4.7.7
and then:

npm i

I am not sure yet if it not add some new bugs :)

@Lurk your solution worked for me too

mongoose need to be updated in keystone/package.json

Thanks! I have the same problem and now the webapp run without errors.

Nodejs (v.7.4.0)
mongodb (v3.4.1)
KeystoneJs (0.3.19)

On linux kubuntu 16.10

@jaehoo I was able to fix this error by changing the version of Node to 6.9.5.

@troystarwalt down grading node is not a fix

If all that needs to happen is a mongoose update we should do that. Anyone want to open a PR?

I'm experiencing this same issue and am considering updating Mongoose to 4.x, has anyone had any issues running Keystone 0.3x with Mongoose 4.x?

+1 on moving back down to node 6.11.2 from 8.x. Should probably add to documentation somewhere that node 8.x isn't supported.

Closing this as a known keystone 0.3 problem. We are no longer actively developing for 0.3. Updating mongoose yourself is the recommended fix if anyone else runs into this problem.

We recommend upgrading to 4 if you can (the upgrade is quite small, and upgrade docs can be found here.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

schybo picture schybo  路  3Comments

christroutner picture christroutner  路  4Comments

stennie picture stennie  路  5Comments

webteckie picture webteckie  路  5Comments

zhdan88vadim picture zhdan88vadim  路  5Comments