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

CLI install syntax not working

npx fitbit-build works fine, but

npx fitbit-install or npx fitbit-install@latest doesn't

 

What was missed in the setup and why does it give a

npm ERR! 404 Not Found - GET https://registry.npmjs.org/fitbit-install - Not found

 

Trying to test version SDK 4.2 pending fix to SDK 4.3

Author | ch, passion for improvement.

Best Answer
0 Votes
2 REPLIES 2

It's ok, there is no fitbit-install command.

 

Use this command to launch the interactive shell:

npx fitbit

 

Then you can build and install using: 
bi

 

If you checkout the CLI guide, it has the full instructions for working with the CLI. https://dev.fitbit.com/build/guides/command-line-interface/

Best Answer
0 Votes

Hi Jon,

Something is not working, started from scratch again, to record the steps.

 

  • Installed Node.js on Windows, using node-v14.17.3-x86.msi
  • opened Node.JS command prompt
  • created a directory Node

 

then followed video in the documentation

  • copy in project folders [app,resources etc. from a Studio export]
  • run npm add --dev @Fitbit/sdk [seems ok]
  • run npm add --dev @Fitbit/sdk-cli [load of errors, about python &  keytar@6.0.1 install ]
  • run npx fitbit-build - [ ok,  an app.fba file was created]
  • run npx fitbit-install [complains fitbit-install not found]

tried npx fitbit [doesn't work, says can't find cli.js]

 

what step is missing or wrong?

Author | ch, passion for improvement.

Best Answer
0 Votes