Keystone JS in Linux doesn’t Start (And how to fix)

keystonejs

Recently I have to develop somethings in Nodejs and I found this CMS framework and I think to test it, in the web page you can found the starter guide. But when I was running the application with the command:

node keystone

I have two problems:

1.Error in bson module:

{ 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. (/home/asanchez/Development/Bitbucket/incticket/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. (/home/asanchez/Development/Bitbucket/incticket/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' }

2.The server start but does nothing and the console screen is blank, it not showing nothing.

The problem has been in my installed versions of the Nodejs and mongodb (I had had to update both Nodejs to v7.4.0 and mongodb to v3.4.1) and  I change the version of mongoose in this file “node_modules/keystone/package.json”, when you donwload Keystone has “mongoose”: “~3.8.35” I change to “mongoose”:”^4.6.5″ like as mention in this issue after that you need update the package with “npm install” and  the application start without problems.

This is my result, no more errors =)

keystonejs1

keystonejs2

I hope this tip help others.

Regards!

Anuncios

Responder

Introduce tus datos o haz clic en un icono para iniciar sesión:

Logo de WordPress.com

Estás comentando usando tu cuenta de WordPress.com. Cerrar sesión / Cambiar )

Imagen de Twitter

Estás comentando usando tu cuenta de Twitter. Cerrar sesión / Cambiar )

Foto de Facebook

Estás comentando usando tu cuenta de Facebook. Cerrar sesión / Cambiar )

Google+ photo

Estás comentando usando tu cuenta de Google+. Cerrar sesión / Cambiar )

Conectando a %s