abandonware / noble

A Node.js BLE (Bluetooth Low Energy) central module : Community maintained
https://libraries.io/npm/@abandonware%2Fnoble
MIT License
534 stars 162 forks source link

Link Node JS and Node "File exists" #318

Open ukiews opened 10 months ago

ukiews commented 10 months ago

When running:

sudo ln -s /usr/bin/nodejs /usr/bin/node

per https://github.com/abandonware/noble#prerequisites

I get: ln: failed to create symbolic link '/usr/bin/node': File exists

Is this normal? I am still trying to get BLE to work with the SwitchBot plugin on the RaspberryPi4

rzr commented 10 months ago

This is a bad practice this should be changed in the documentation, which OS are you running ?

ukiews commented 10 months ago

This is a bad practice this should be changed in the documentation, which OS are you running ?

Homebridge 1.7

donavanbecker commented 10 months ago

@ukiews, @rzr is asking for your Operating System not app that is using noble.

ukiews commented 10 months ago

Sorry, I think you are looking for this: Raspbian GNU/Linux Bullseye (11) I'm running a standalone Homebridge server using the Raspberry Pi Imager.

rzr commented 10 months ago

Please update documentation accordingly something like ( /usr/bin/node --version || sudo ln -s /usr/bin/nodejs /usr/local/bin/node)

if you want to use a different node than the default one, may you look at update-alternatives command too