-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
0.33.0 - 'npm ci --omit=dev --cpu=x64 --os=linux --libc=glibc' installs both glibc and musl libs #3873
Comments
Please see npm/cli#6914 |
I'm probably missing something, but I'm seeing the same thing happening when using either Example {
"name": "sharp-binaries",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"dependencies": {
"express": "4.18.2",
"sharp": "0.33.0"
},
"os": ["linux"],
"cpu": ["x64"],
"libc": ["glibc"],
"pnpm": {
"supportedArchitectures": {
"os": ["linux"],
"cpu": ["x64"],
"libc": ["glibc"]
}
}
}
PNPMUses the Dockerfile FROM node:18.18-alpine3.18
RUN corepack enable && corepack prepare pnpm@latest --activate
COPY package*.json ./
RUN pnpm i
COPY index.js ./
CMD ["node", "index.js"] Build targetting docker build . --no-cache --platform=linux/amd64 --tag 'sharp-binaries:latest' Results YarnUses Dockerfile FROM node:18.18-alpine3.18
COPY package*.json ./
RUN yarn install
COPY index.js ./
CMD ["node", "index.js"] Build targetting docker build . --no-cache --platform=linux/amd64 --tag 'sharp-binaries:latest' Results |
@adriaanmeuris For pnpm, please see pnpm/pnpm#7214 - if the latest version of pnpm is installing the wrong dependencies, then please ask at the pnpm repo. For yarn, it looks like you're using version 1.
Please use at least version 3 of yarn, but avoid its "plug'n'play" linker. Version 1 of yarn is no longer actively developed and is missing so many useful newer features. See also evanw/esbuild#2949 |
Thanks @lovell, I can confirm this works with yarn@3 without PnP linker. For |
Thanks, I will track the npm issue. |
For whoever ends up here - the |
Possible install-time or require-time problem
Are you using the latest version of sharp?
sharp
as reported bynpm view sharp dist-tags.latest
.If you cannot confirm this, please upgrade to the latest version and try again before opening an issue.
If you are using another package which depends on a version of
sharp
that is not the latest, please open an issue against that package instead.Are you using a supported runtime?
If you cannot confirm any of these, please upgrade to the latest version and try again before opening an issue.
Are you using a supported package manager?
If you cannot confirm any of these, please upgrade to the latest version and try again before opening an issue.
What is the complete output of running
npm install --verbose --foreground-scripts sharp
in an empty directory?What is the output of running
npx envinfo --binaries --system --npmPackages=sharp --npmGlobalPackages=sharp
?Problem description
When I run
npm ci --omit=dev --cpu=x64 --os=linux --libc=glibc
, it installs both glibc and musl versioned libraries:Expected behavior
Only
sharp-libvips-linux-x64
andsharp-linux-x64
should be installed.The text was updated successfully, but these errors were encountered: