Open AshleyPinner opened 1 year ago
I've technically solved this by moving the bluetooth-hci-socket folder in node_modules into the @abandonware
folder, and this has fixed it, though I feel like that's not a recommended solution...
@abandonware/bluetooth-hci-socket is pulled by @abandonware/noble, and not by node-poweredup. The package is in optional-dependency section there and recently added to normal dependencies https://github.com/noble/noble/commit/29166df77354275801b5018e9dd5553d258acef5 and then removed again https://github.com/noble/noble/commit/6c84903a586c3deb442417daaf7618ea2557a551
In my setup (linux, oder npm version) the dependency is installed together with node-poweredup. Not sure if the dependency should indeed be optional there, if it would now need to be explicitly requested by node-poweredup and why the behavior is different in different npm versions.
Can you have a look in package.lock file what version of @abandonware/noble you are getting and what happens if you install @abandonware/noble directly?
I think it might be this bug https://github.com/npm/cli/issues/4828
Versions:
Installation:
Attempting to run a very basic script:
Results in this error:
Alright, so what if I require that package explicitly:
Running the code again gives me the exact same error as above, though, so no changes if I try this.
package.json after this:
I can provide the lockfile if required.
I feel like I'm missing something but I do not have enough experience with JS packages to work that out. I'm happy to run debugging commands if you let me know what other output would be useful.