-
-
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
Mac M1 yarn add sharp #2891
Comments
Please can you provide the complete output of running |
sharp_install.txt |
Thanks, it looks like there's still some missing output. My best guess would be that there was some kind of error downloading the prebuilt binaries. I notice you're using an alternative npm registry based in China - did you see https://sharp.pixelplumbing.com/install#chinese-mirror ? Have you tried using this? Are there any other npm-based environment variables? What is the output of running |
|
Please can you make sure you're using the latest version of npm v7 (currently v7.24.0). There's still missing output, and I know there have previously been bugs in npm (and yarn) that cause installation log suppression, which is what I suspect might be happening here. Is there any more information in the referenced log file |
|
Is it possible that you've installed |
I think you've run into npm/cli#2606 as it would totally explain why npm v7 is trying to run Please can you try running |
This is a bug in npm v7 - please subscribe to npm/cli#2606 for updates. |
Having trouble installing sharp - tried yarn add --platform=darwin --arch=arm64 sharp no dice. |
@dzeitman Please open a new installation issue and answer all of the questions. https://github.com/lovell/sharp/issues/new?assignees=&labels=installation&template=installation.md |
Did you see the documentation relating to installation?
YES
Have you ensured the architecture and platform of Node.js used for
npm install
is the same as the architecture and platform of Node.js used at runtime?yes
Are you using the latest version? Is the version currently in use as reported by
npm ls sharp
the same as the latest version as reported bynpm view sharp dist-tags.latest
?yes
If you are using npm v6 or earlier and installing as a
root
orsudo
user, have you tried with thenpm install --unsafe-perm
flag?latest node
If you are using npm v7, does the user running
npm install
own the directory it is run in?npm install sharp@v0.29.1
If you are using the
ignore-scripts
feature ofnpm
, have you tried with thenpm install --ignore-scripts=false
flag?What is the complete output of running
npm install --verbose sharp
? Have you checked this output for useful error messages?What is the output of running
npx envinfo --binaries --system
?The text was updated successfully, but these errors were encountered: