Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

CLI errors on Windows Subsystem for Linux

ANSWERED

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.
Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

A minor update: apparently the fitbit devs are interested in getting CLI to work on WSL, so keep an eye out!

Peter McLennan
Gondwana Software

View best answer in original post

Best Answer
3 REPLIES 3

WSL isn't (yet) supported: see here.

Peter McLennan
Gondwana Software
Best Answer

A minor update: apparently the fitbit devs are interested in getting CLI to work on WSL, so keep an eye out!

Peter McLennan
Gondwana Software
Best Answer

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

Best Answer