Prerequisites
Description
We are using Keytar as a dependency in our project (Azure Static Web Apps CLI), and some users have reported a failure when trying to install the package, on Alpine Linux (Docker image). We managed to reproduce the issue on our end, and here is the error message:

Steps to Reproduce
- Open a container image like
docker run -it mcr.microsoft.com/azure-cli:2.33.1
- Run the following commands:
# Update and upgrade
apk update && apk upgrade \
&& apk add -U curl bash ca-certificates openssl ncurses coreutils python2 make gcc g++ libgcc linux-headers grep util-linux binutils findutils \
&& apk add -U bash icu-libs krb5-libs libgcc libintl libssl1.1 libstdc++ zlib \
&& apk add -U libgdiplus --repository https://dl-3.alpinelinux.org/alpine/edge/testing/ \
&& apk add -U libc6-compat gcompat
# Install nvm
cd ~
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
# Install node.js
nvm install --lts
nvm use --lts
# Install SWA CLI
npm install -g @azure/static-web-apps-cli
Expected behavior:
The SWA CLI should be installed successfully.
Actual behavior:
See error above.
Reproduces how often:
Always.
Versions
OS: A container image, mcr.microsoft.com/azure-cli:2.33.1, based on Alpine Linux
Additional Information
Origina issue: Azure/static-web-apps-cli#509
Prerequisites
Description
We are using Keytar as a dependency in our project (Azure Static Web Apps CLI), and some users have reported a failure when trying to install the package, on Alpine Linux (Docker image). We managed to reproduce the issue on our end, and here is the error message:
Steps to Reproduce
docker run -it mcr.microsoft.com/azure-cli:2.33.1Expected behavior:
The SWA CLI should be installed successfully.
Actual behavior:
See error above.
Reproduces how often:
Always.
Versions
OS: A container image, mcr.microsoft.com/azure-cli:2.33.1, based on Alpine Linux
Additional Information
Origina issue: Azure/static-web-apps-cli#509