diwao11
diwao11

Reputation: 151

Error when starting Nodemon on my server.js file (Nodejs)

I recently started getting an error in my terminal when I start nodemon on my server.js file within my directory. Here is a picture below enter image description here

Here is the error.

    dyld: lazy symbol binding failed: Symbol not found: _node_module_register
    Referenced from: /Users/dan/nodeStuff/crm-test/node_modules/mongoose/node_modules/mongodb/node_modules/bson/build/Release/bson.node
    Expected in: dynamic lookup

Not sure what the issue is. I did a brew update and also made sure my port was correct.

Upvotes: 0

Views: 1437

Answers (3)

red-charlt
red-charlt

Reputation: 15

For anyone else who stumbles by this problem, I had the same issue when trying to start my server with nodemon.

For me, the problem was I was still using an older version of node with nvm. I switched back to the version appropriate for my application and problem solved!

Upvotes: 1

diwao11
diwao11

Reputation: 151

I've looked around and I did a npm rebuild which helped. When I start nodemon server.js or node server.js it tells me that one of the packages I was using is depreciated, I'm guessing that's what threw the error. Not sure why body-parser is depreciated.

Upvotes: 0

javorosas
javorosas

Reputation: 769

Did you try running node server.js?

Maybe it's not nodemon.

Upvotes: 0

Related Questions