-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to install SWA CLI on Alpine Linux #509
Comments
Hey @justinyoo can you share the logs from |
FYI, I opened an issue at atom/node-keytar#461 |
Sure. I also suspect the keytar side... Here's the log:
|
@justinyoo To fix the npm install of the asw CLI, I had to add the following packages: |
@Nexyll I installed what I had installed above + what you suggested, but still have the same error. This time, I use the container image of |
Hi, any updates on this issue or suggested workarounds? |
hello team, I am also similar issue ..how to resolve it? |
As of right now, I cannot reproduce,
This is with image node:20-alpine3.19 - my Dev container looks like this: {
"name": "Alpine Dev",
"image": "node:20-alpine3.19",
"features": {
"ghcr.io/devcontainers/features/common-utils:2": {}
}
} This is with @azure/static-web-apps-cli:1.1.10 (latest version at time of writing) I did try to build with mcr.microsoft.com/azure-cli:2.37.0, but that does not contain all the requirements for running node. (specifically, it does not contain the glibcxx libraries) and is based on an older (non-supported) version of Alpine Linux (3.15 - whereas the earliest Alpine Linux supported by Node is 3.19) I'm not an expert on containerization, but my suggestion is to start with the requirements of your application (node, in this case) and go from there. |
Describe the bug
I'm using a Docker container image,
mcr.microsoft.com/azure-cli:2.33.1
, which is based on Alpine Linux.I installed nvm and the latest node v16.x successfully. But I wasn't able to install this SWA CLI. It threw an error:
To Reproduce
Steps to reproduce the behavior:
docker run -it mcr.microsoft.com/azure-cli:2.33.1
Expected behavior
A clear and concise description of what you expected to happen.
The SWA CLI should be installed successfully.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
If I ran the yarn command like:
It was fine, but I still have the same issue after that, by running
npm install
ornpm run build
, etc...The text was updated successfully, but these errors were encountered: