Facing the below issue while running the node in VSC:
Node Version: node -v6.14.2 and npm -v3.10.10
Platform: Windows(64 bit)
Error: Could not locate the bindings file. Tried:
→ C:\Users\Admin_Ajay\edi_blockchain\node_modules\ursa\build\ursaNative.node
→ C:\Users\Admin_Ajay\edi_blockchain\node_modules\ursa\build\Debug\ursaNative.node
→ C:\Users\Admin_Ajay\edi_blockchain\node_modules\ursa\build\Release\ursaNative.node
→ C:\Users\Admin_Ajay\edi_blockchain\node_modules\ursa\out\Debug\ursaNative.node
→ C:\Users\Admin_Ajay\edi_blockchain\node_modules\ursa\Debug\ursaNative.node
→ C:\Users\Admin_Ajay\edi_blockchain\node_modules\ursa\out\Release\ursaNative.node
→ C:\Users\Admin_Ajay\edi_blockchain\node_modules\ursa\Release\ursaNative.node
→ C:\Users\Admin_Ajay\edi_blockchain\node_modules\ursa\builddefault\ursaNative.node
→ C:\Users\Admin_Ajay\edi_blockchain\node_modules\ursa\compiled\6.14.2\win32\x64\ursaNative.node
at bindings (C:\Users\Admin_Ajay\edi_blockchain\node_modules\bindings\bindings.js:93:9)
at Object.
at Module._compile (module.js:577:32)
at Object.Module._extensions..js (module.js:586:10)
at Module.load (module.js:494:32)
at tryModuleLoad (module.js:453:12)
at Function.Module._load (module.js:445:3)
at Module.require (module.js:504:17)
at require (internal/module.js:20:19)
at Object.
at Module._compile (module.js:577:32)
at Object.Module._extensions..js (module.js:586:10)
at Module.load (module.js:494:32)
at tryModuleLoad (module.js:453:12)
at Function.Module._load (module.js:445:3)
at Module.require (module.js:504:17)
at require (internal/module.js:20:19)
at Object.
at Module._compile (module.js:577:32)
at Object.Module._extensions..js (module.js:586:10)
at Module.load (module.js:494:32)
at tryModuleLoad (module.js:453:12)
@Logeshwaran21 what are you trying to do, what did you run to get that output?
The file ursaNative.node should have been compiled by npm install, did you get an error at that point?
ping @Logeshwaran21
The problem is on node modules.So I deleted the node modules and installed it again.Now the code is running properly @joaocgreis
Thanks @Logeshwaran21 it worked for me.
Please tell me hoe to install node modules.
@sandu9618 run: npm install
Read more here: https://docs.npmjs.com/cli/install
It might happen when some libraries failed during installation (e.g. due to incompatible Node version)
Try rebuilding dependencies with npm rebuild
I've solved the same issue installing the missing file.
In your case it is ursaNative.node, so you should do: npm install ursaNative
Most helpful comment
The problem is on node modules.So I deleted the node modules and installed it again.Now the code is running properly @joaocgreis