08-29-2018 14:38 - edited 08-29-2018 14:56
08-29-2018 14:38 - edited 08-29-2018 14:56
So in my attempt at using the CLI tools in WSL, Ive come across some issues that I hope someone can help me with.
My node version is 8.11.4 (current LTS)
My npm version is 5.6.0
I am using ubuntu 18.04 on wsl
I am able to do
npx create-fitbit-app testapp
and go through the questions to make the directory.
Afterwords however if I try
npx fitbit
I get this error
(node:282) UnhandledPromiseRejectionWarning: Error: Failed to execute child process “dbus-launch” (No such file or directory) (node:282) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:282) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
It maybe looks like its my node version, but when I tried using a newer version I wasnt even able to make the app directory without multiple errors.
Anyone know how I can fix this?
P.S
I am able to do
npx fitbit-build
but that doesnt get me very far.
Edit:
I fixed most of the dbus stuff hoping that would fix it. But now I am getting
(node:671) UnhandledPromiseRejectionWarning: Error: Unknown or unsupported transport “disabled” for address “disabled:” (node:671) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejectionid: 1) (node:671) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejectionsthat are not handled will terminate the Node.js process with a non-zero exit code.
Answered! Go to the Best Answer.
09-02-2018 13:26
09-02-2018 13:26
A minor update: apparently the fitbit devs are interested in getting CLI to work on WSL, so keep an eye out!
08-29-2018 19:50
09-02-2018 13:26
09-02-2018 13:26
A minor update: apparently the fitbit devs are interested in getting CLI to work on WSL, so keep an eye out!
01-07-2020 17:43 - edited 01-07-2020 17:57
01-07-2020 17:43 - edited 01-07-2020 17:57
What terminal are Windows users supposed to use instead of WSL? I haven't been able to get Git Bash, Powershell, or CMD to work with the Fitbit CLI. I can never get past the NPM install because of an error with node-gyp.
Edit: I've posted about this here: https://community.fitbit.com/t5/SDK-Development/Is-Windows-development-possible-anymore/td-p/4003763