Closed Karmac closed 5 years ago
Have seen the same error. On diagnosing, figured that the problem was with using nvm for version management. NVM keeps the node versions in the directory: /usr/username/.nvm which is used for compiling when installing the packages. Using the bluetooth-hci-socket requires using sudo command, which does not access the Node from nvm path, in stead uses the node version installed for root user.
For me, it appeared like this: $ sudo node -v v10.15.3 $ node -v v9.11.2
Solution
Downgrade the node version for root to Node 8.15.1.
Hi @psambit9791, thanks for your response!
There was a mismatch on both versions. I downgraded NVM version because it was higher. Now I get the following: node -v v8.11.1 sudo node -v v8.11.1
But I still get "Compiled against NODE_MODULE_VERSION 57. This version requires NODE_MODULE_VERSION 64".
I think I will try to uninstall NVM and use only system node.js. I'll let you know if I find something.
Okey, I finally solved the issue. Seems that Node.js version didn't even matter, because Electron uses it's own. I downgraded Electron to 2.0.18 which uses Node 8.9.x.
Thanks for your help.
@Karmac
Can you elaborate more on how you recompile?
Hi!
I've been trying to install bleno without success. I'm on a Raspberry PI 3 Model B. First I downgraded Node.js to version 8.15.1 in order to avoid node-gyp compiling error. Now, I get the following when running the program:
In this one I was using @abandonware's fork. I've also switched versions, and I get the same error (compiled using XX and required version 64). I've already searched on the internet and I don't find any working solution.
If someone could please help me or give some ideas I would appreciate. Everything should work fine here because I've seen bleno installed on Raspberries.
Thanks,