noble icon indicating copy to clipboard operation
noble copied to clipboard

Link Node JS and Node "File exists"

Open ukiews opened this issue 9 months ago • 5 comments

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

ukiews avatar Nov 16 '23 16:11 ukiews

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

rzr avatar Nov 16 '23 21:11 rzr

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

Homebridge 1.7

ukiews avatar Nov 16 '23 23:11 ukiews

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

donavanbecker avatar Nov 16 '23 23:11 donavanbecker

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.

ukiews avatar Nov 17 '23 15:11 ukiews

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

rzr avatar Nov 17 '23 16:11 rzr