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

CLI fitbit-install fails with 404 error

ANSWERED

Disregard this post 🙂 unless you're having a problem with the npx fitbit-build command which my solution below may fix.  I misread the documentation and apparently there is no fitbit-install command!  LOL No wonder it doesn't work.

 

The command npx fitbit-install fails with a 404 message.  The command to build works fine: npx fitibit-build although it didn't work at first.  I was able to get the build command to work by running the fitbit shell (npx fitbit) and executing the command within the shell (fitbit$ build).  That must have set something up because I can now run it.  That same solution didn't work for the install.  But I can run the install from within the shell just not the fitbit-install command.

C:\Users\rskidmore\test_cli>npx fitbit-install
npx: installed 1 in 7.043s
Path must be a string. Received undefined
npm ERR! code E404
npm ERR! 404 Not Found: fitbit-install@latest
npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\rskidmore\AppData\Roaming\npm-cache\_logs\2018-09-06T17_52_39_683Z-debug.log
Install for fitbit-install@latest failed with code 1
C:\Users\rskidmore\test_cli>npx fitbit
npx: installed 1 in 5.386s
Path must be a string. Received undefined
C:\Users\rskidmore\test_cli\node_modules\@fitbit\sdk-cli\lib\cli.js
Logged in as Richard Skidmore <richard.skidmore@gmail.com>
fitbit$ install
No app package specified. Using default ./build/app.fba.
Loaded appID:1c74487f-cab4-4f12-9ee1-253fa4e52624 buildID:0x0006d164a10e74f5
App requires a device, connecting...
Auto-connecting only known device: Ionic Simulator
App requires a phone, connecting...
Auto-connecting only known phone: Simulator
Sideloading app: 100% completed
Sideloading companion: 100% completed
Launching app
[10:53:46]       App: App Closed
[10:53:47]       App: App Started
[10:53:47]       App: Hello world!                                                                                                                                                                              (\app\index.js:2,1)
[10:53:48] Companion: Hello world!                                                                                                                                                                              (\companion.js:2,9)
fitbit$

Any help is appreciated.

Thanks,

Rich

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

This should be 

npx fitbit-build
npx fitbit
fitbit$ install

 

npx fitbit-install is not a valid command.

View best answer in original post

Best Answer
0 Votes
1 REPLY 1

This should be 

npx fitbit-build
npx fitbit
fitbit$ install

 

npx fitbit-install is not a valid command.

Best Answer
0 Votes