Fitbit / create-fitbit-app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

npx create-fitbit-app fails on linux

mrmelon54 opened this issue · comments

commented

Aborting installation.
yarnpkg add --dev --exact @fitbit/sdk-cli @fitbit/sdk --cwd /home/user/fitbit-test-app has failed.

Do you have logs?

commented
sean@phoenix:~ $ npx create-fitbit-app fitbit-test-app

Creating a new Fitbit SDK app in /home/sean/fitbit-test-app.

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

yarn add v1.22.5
info No lockfile found.
[1/4] Resolving packages...
warning @fitbit/sdk-cli > @moleculer/vorpal > babel-polyfill > core-js@2.6.12: core-js@<3.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js.
warning @fitbit/sdk-cli > @moleculer/vorpal > babel-polyfill > babel-runtime > core-js@2.6.12: core-js@<3.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js.
warning @fitbit/sdk > rollup-plugin-babel@4.4.0: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-babel.
[2/4] Fetching packages...
info fsevents@2.3.2: The platform "linux" is incompatible with this module.
info "fsevents@2.3.2" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
[4/4] Building fresh packages...
[-/2] ⡀ waiting...
error /home/sean/fitbit-test-app/node_modules/keytar: Command failed.
Exit code: 1
Command: prebuild-install || node-gyp rebuild
Arguments: 
Directory: /home/sean/fitbit-test-app/node_modules/keytar
Output:
prebuild-install WARN install No prebuilt binaries found (target=15.12.0 runtime=node arch=x64 libc= platform=linux)
gyp info it worked if it ends with ok
gyp info using node-gyp@7.1.2
gyp info using node@15.12.0 | linux | x64
gyp info find Python using Python version 3.9.2 found at "/usr/bin/python3"
gyp info spawn /usr/bin/python3
gyp info spawn args [
gyp info spawn args   '/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'make',
gyp info spawn args   '-I',
gyp info spawn args   '/home/sean/fitbit-test-app/node_modules/keytar/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/home/sean/.cache/node-gyp/15.12.0/include/node/common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=/home/sean/.cache/node-gyp/15.12.0',
gyp info spawn args   '-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp',
gyp info spawn args   '-Dnode_lib_file=/home/sean/.cache/node-gyp/15.12.0/<(target_arch)/node.lib',
gyp info spawn args   '-Dmodule_root_dir=/home/sean/fitbit-test-app/node_modules/keytar',
gyp info spawn args   '-Dnode_engine=v8',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'build',
gyp info spawn args   '-Goutput_dir=.'
gyp info spawn args ]
Package libsecret-1 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libsecret-1.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libsecret-1' found
gyp: Call to 'pkg-config --cflags libsecret-1' returned exit status 1 while in binding.gyp. while trying to load binding.gyp
gyp ERR! configure error 
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:351:16)
gyp ERR! stack     at ChildProcess.emit (node:events:369:20)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
gyp ERR! System Linux 5.10.0-7-amd64
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/sean/fitbit-test-app/node_modules/keytar
gyp ERR! node -v v15.12.0
gyp ERR! node-gyp -v v7.1.2
gyp ERR! not ok


Aborting installation.
  yarnpkg add --dev --exact @fitbit/sdk-cli @fitbit/sdk --cwd /home/sean/fitbit-test-app has failed.

Deleting generated file... node_modules
Deleting generated file... package.json
Deleting fitbit-test-app/ from /home/sean
Done.
commented

I'm running debian 11 on my machine

We don't officially support Linux because the setups can be so varied, but you're missing a library here: Package libsecret-1 was not found in the pkg-config search path.. Install that and you should be good.