Error after run in debug mode

Operating System: Window 10 64bit npm version: 5.5.1 node version: 6.11.3 bcrypt version: 1.0.3
Same here and running node 8.9.1 LTS and bcrypt 1.0.3
Exception has occurred: Error
Error: The module '/home/sgalindo/code/graphql/ruac_api/node_modules/bcrypt/lib/binding/bcrypt_lib.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 57. This version of Node.js requires
NODE_MODULE_VERSION 59. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).
at Object.Module._extensions..node (module.js:670:18)
at Module.load (module.js:560:32)
at tryModuleLoad (module.js:503:12)
at Function.Module._load (module.js:495:3)
at Module.require (module.js:585:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/home/sgalindo/code/graphql/ruac_api/node_modules/bcrypt/bcrypt.js:6:16)
at Module._compile (module.js:641:30)
at Object.Module._extensions..js (module.js:652:10)
at Module.load (module.js:560:32)
at tryModuleLoad (module.js:503:12)
at Function.Module._load (module.js:495:3)
at Module.require (module.js:585:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/home/sgalindo/code/graphql/ruac_api/graphql/resolvers.js:1:78)
at Module._compile (module.js:641:30)
It's clear. You compiled your module against an earlier version of NodeJS.
npm rebuild bcrypt
This should fix your issue
The problem wasn't bcrypt but instead visual studio code debugger was detecting my system's node version which is v9.2.0
Debugging with inspector protocol because Node.js v9.2.0 was detected.
But I'm using nvm for my projects with version 8.9.1 so before opening vscode, I had to run these commands in my terminal
nvm use v8.9.1
code
Then I run the debugger and get the correct version detected.
Debugging with inspector protocol because Node.js v8.9.1 was detected.
Alternatively, in the launch.json file, runtimeExecutable can be specific as follows:
"runtimeExecutable": "/usr/share/nvm/versions/node/v8.9.1/bin/node",
Hope this helps someone in a similar situation