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

Command Line tool create-fitbit-app only working sometimes on mac.

I am trying to create a new watch face project and sometimes it works fine and creates the new watch face but most of the time it gives me an this error:

Creating a new Fitbit SDK app in /Users/tylern/Documents/Fitbit Dev/watchfaces/test.

Installing packages. This might take a couple of minutes.
Installing @Fitbit/sdk and @Fitbit/sdk-cli...

npm ERR! code 1
npm ERR! path /Users/tylern/Documents/Fitbit Dev/watchfaces/test/node_modules/keytar
npm ERR! command failed
npm ERR! command sh -c prebuild-install || node-gyp rebuild
npm ERR! CXX(target) Release/obj.target/keytar/src/async.o
npm ERR! (node:2762) [DEP0150] DeprecationWarning: Setting process.config is deprecated. In the future the property will be read-only.
npm ERR! (Use `node --trace-deprecation ...` to show where the warning was created)
npm ERR! clang: error: no such file or directory: 'Dev/watchfaces/test/node_modules/node-addon-api'
npm ERR! make: *** [Release/obj.target/keytar/src/async.o] Error 1
npm ERR! gyp ERR! build error 
npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2
npm ERR! gyp ERR! stack     at ChildProcess.onExit (/opt/homebrew/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
npm ERR! gyp ERR! stack     at ChildProcess.emit (node:events:394:28)
npm ERR! gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
npm ERR! gyp ERR! System Darwin 20.5.0
npm ERR! gyp ERR! command "/usr/local/bin/node" "/opt/homebrew/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd /Users/tylern/Documents/Fitbit Dev/watchfaces/test/node_modules/keytar
npm ERR! gyp ERR! node -v v16.6.1
npm ERR! gyp ERR! node-gyp -v v7.1.2
npm ERR! gyp ERR! not ok

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/tylern/.npm/_logs/2021-08-04T00_17_32_199Z-debug.log

Aborting installation.
  npm install --save-dev --save-exact --loglevel error @Fitbit/sdk-cli @Fitbit/sdk has failed.

Deleting generated file... package.json
Deleting test/ from /Users/tylern/Documents/Fitbit Dev/watchfaces
Done.

I've tried re-installing node.js and Xcode command line tools but that hasn't changed anything.

 

Any help would be appreciated.

Best Answer
0 Votes
2 REPLIES 2

In your working directory, run 

 

find . -type f

 

and paste the output here

 

Also, make sure you are following these instructions for creating a new clockface: https://dev.fitbit.com/build/guides/command-line-interface/#prerequisites

Best Answer
0 Votes

This is the output:

./.DS_Store
Best Answer
0 Votes