extensions: Logitech Litra not running
Extension
https://www.raycast.com/timrogers/logitech-litra
Description
Cannot use the Manage Devices option on the Litra extension:
The output of dirname $(which litra-on)
is: /opt/homebrew/bin
/Error: Command failed: /opt/homebrew/bin/litra-devices --json
env: node: No such file or directory
env: node: No such file or directory
ChildProcess.exithandler:node:child_process:412:12
ChildProcess.emit:node:events:513:28
One note: if I run the command is trying to run manually I get a correct response:
/opt/homebrew/bin/litra-devices --json
[{"name":"Logitech Litra Glow","serial_number":"XXXXXXXXXXXXX"}]
Steps To Reproduce
- Download the Litra extension.
- Install Node.
- Install the Litra package.
- Run extension.
Current Behaviour
Expected Behaviour
Manage the connected Litra devices.
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 20 (9 by maintainers)
Commits related to this issue
- fix: support Node.js installed with `nvm` by allowing users to configure the path of the Node.js binary This change attempts to get the extension working where Node.js is installed using `nvm`. To do... — committed to timrogers/raycast-logitech-litra by timrogers a year ago
- fix: support Node.js installed with `nvm` by allowing users to configure the path of the Node.js binary This change attempts to get the extension working where Node.js is installed using `nvm`. To do... — committed to timrogers/raycast-logitech-litra by timrogers a year ago
- fix: support non-standard Node.js installations by allowing users to configure the path of the Node.js binary Fixes https://github.com/raycast/extensions/issues/5476. — committed to timrogers/raycast-logitech-litra by timrogers a year ago
- fix: support non-standard Node.js installations by allowing users to configure the path of the Node.js binary (#54) * chore: remove unused variable * fix: support non-standard Node.js installations ... — committed to timrogers/raycast-logitech-litra by timrogers a year ago
- Update the Logitech Litra extension to v0.2.1 (#6332) This updates the Logitech Litra extension to [v0.2.1][1]. The changeset: * adds support for non-standard Node.js installations (e.g. from `... — committed to raycast/extensions by timrogers a year ago
That’s super helpful! Thanks ❤️
My thinking is that I could add an (optional) setting where you specify the path to the Node executable rather than relying on
/usr/bin/env node
. I think that’ll do the trick! I’ll try to do it in the next couple of days and will share a link so you can test it.I’ve confirmed with some users that the change in https://github.com/timrogers/raycast-logitech-litra/pull/54 works. I’m going to get it pushed for review, and we should be able to get the fix into the Raycast Store very soon.
Funny, I ended up going to same route with the simple script. Only difference was I created it using ‘Shortcuts’. This allowed me to use the built in Raycast Shortcuts functionality, allowing for quicker on/off either via Raycast or a hot key combo. I’d prefer to use this extension though, since it provides more functionality. Regardless it’s a quick work around.
FWIW, it seems to the reason it works using your own script is because my I’m able to source/load the shell variables that NVM relies on. Or to just call the path to the NVM node bin node path.