0

After updating mongoose to the latest version, when I start up my server I get the following not-very-helpful error:

dyld: lazy symbol binding failed: Symbol not found: _node_module_register
Referenced from: /Users/michaelrusso/Development/sp-app-website/services/node_modules/mongoose/node_modules/mongodb/node_modules/kerberos/build/Release/kerberos.node
Expected in: dynamic lookup

dyld: Symbol not found: _node_module_register
Referenced from: /Users/michaelrusso/Development/sp-app-website/services/node_modules/mongoose/node_modules/mongodb/node_modules/kerberos/build/Release/kerberos.node
 Expected in: dynamic lookup

EDIT: this question is specific to mongoose 4.2.5

Musical Shore
  • 1,361
  • 3
  • 20
  • 41

1 Answers1

0

Try deleting your node_modules folder and running npm install again.

rm -rf node_modules/
npm install

That should fix it.

Basically this error means that some binary packages were built under different node.js versions and are not compatible with each other.

Source: dyld: lazy symbol binding failed: Symbol not found: _node_module_register

Community
  • 1
  • 1
Vadorequest
  • 16,593
  • 24
  • 118
  • 215