08-03-2021 18:56
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

08-03-2021 18:56
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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.

08-04-2021 13:37 - edited 08-04-2021 13:43
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

08-04-2021 13:37 - edited 08-04-2021 13:43
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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

08-04-2021 16:06
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

08-04-2021 16:06
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
This is the output:
./.DS_Store

