Skip to content

Bug: keytar compilation fails due to missing libsecret-1 #2

Description

@tom9358

Hi! Thanks for the nice work on creating an installation script. Unfortunately, if I run it, the setup fails while trying to compile keytar. The build process aborts because libsecret-1 cannot be found in the pkg-config search path.
Since Termux handles desktop environment keyrings differently (or lacks them entirely by default), keytar is unable to build native dependencies.

Environment

  • OS: Android (via Termux)
  • Node.js Version: v26.2.0
  • npm/node-gyp Version: node-gyp v12.3.0
  • Target Package: @github/copilot -> keytar@7.9.0

Error Log

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! cwd /data/data/com.termux/files/usr/lib/node_modules/@github/copilot/node_modules/keytar
gyp ERR! node -v v26.2.0
gyp ERR! node-gyp -v v12.3.0
gyp ERR! $npm_package_name keytar
gyp ERR! $npm_package_version 7.9.0
gyp ERR! not ok
✗ Failed to compile keytar

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions