Comments (7)
This is the solution:
npm install sharp
npm install --force @img/sharp-win32-x64
from sharp.
@puxiao Using npm --force ...
is a workaround rather than a solution. If you're experiencing npm/cli#4828 then it's really important to add your 👍 to that issue to help improve visibility and increase the chance of it getting fixed.
from sharp.
It looks like you're using multiple platforms with npm - have you definitely ruled out npm/cli#4828 ?
After a bit more investigation, I do believe it is the same issue as npm/cli#4828. The good news is that I was able to come up with a command that appears to work in CI:
- run:
name: Install dependencies
command: |
npm install --force --os=linux --cpu=x64 sharp
npm install --force @img/sharp-linux-x64
Thanks!
from sharp.
It looks like you're using multiple platforms with npm - have you definitely ruled out npm/cli#4828 ?
from sharp.
This is the solution:
npm install sharp npm install --force @img/sharp-win32-x64
For yarn you should also add --ignore-engines
option.
from sharp.
@ryanwalters Were you able to make any progress with this?
from sharp.
- Update your package manager
npm install -g npm@latest
- Clear the cache
npm cache clean -f
- Then Terminate batch job and run again
npm run dev
or
npm run start
from sharp.
Related Issues (20)
- Usage of minSize in webp HOT 2
- Enhancement: add support for jpegli as jpeg encoder HOT 3
- Animated gif resizing discards per-frame background and transparency data HOT 1
- Can I use latest version sharp in Nodejs version 14.19.3 ? HOT 1
- Completely broken in latest version of debian HOT 1
- removing animation while uploading to s3 using sharp HOT 5
- Are there technical and/or licensing issues that require libvips to be shipped as separate library? HOT 2
- Is there another operation than composite to apply a highlighted rectangle to an image? HOT 2
- EPERM problem
- sharp is not compatible with the Node :- 17.9.1 NPM :- 8.11.0 HOT 2
- When you use sharp to convert svg to png, something is missing! HOT 2
- Using `clone` and `joinChannel` together apply channel operation to all output HOT 2
- Override HEIC output limitation HOT 1
- Support outputting higher bit-depth AVIF HOT 1
- Which is better between Sharp.metadata() vs fs.stat() to get image size HOT 1
- Keep only specified EXIF, IPTC, and XMP metadata tag values (similar to `withExifMerge`) HOT 3
- default `limitInputPixels` is not set correctly for jpeg input, avif output, yields `Error: Input image exceeds pixel limit` HOT 2
- sharp: Installation error: Prebuilt libvips 8.14.3 binaries are not yet available for win32-x64 HOT 2
- Using `npm install --cpu=x64 --os=win32` on `arm64/darwin` doesn't install the intended native module. HOT 3
- Google cloud storage integration HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sharp.