Unable to install sharp in docker
See original GitHub issueThis is quite strange, I was able to install sharp with npm, but since today in the morning I’m getting this error. I found a similar issue, but having doubts it can be connection error, as I have tried all day long and not working
Version of sharp that I’m trying to use: “sharp”: “^0.21.0”,
info sharp Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.7.0/libvips-8.7.0-linux-x64.tar.gz
--
| /usr/src/app/node_modules/sharp/install/libvips.js:80
| throw new Error(`Status ${response.statusCode}`);
| ^
|
| Error: Status 403
| at /usr/src/app/node_modules/sharp/install/libvips.js:80:17
| at f (/usr/src/app/node_modules/once/once.js:25:25)
| at ClientRequest.protocol.request.res (/usr/src/app/node_modules/simple-get/index.js:63:5)
| at Object.onceWrapper (events.js:277:13)
| at ClientRequest.emit (events.js:189:13)
| at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:556:21)
| at HTTPParser.parserOnHeadersComplete (_http_common.js:109:17)
| at TLSSocket.socketOnData (_http_client.js:442:20)
| at TLSSocket.emit (events.js:189:13)
| at addChunk (_stream_readable.js:284:12)
| make: Entering directory '/usr/src/app/node_modules/sharp/build'
| TOUCH Release/obj.target/libvips-cpp.stamp
| CXX(target) Release/obj.target/sharp/src/common.o
| ../src/common.cc:25:22: fatal error: vips/vips8: No such file or directory
| #include <vips/vips8>
| ^
| compilation terminated.
| sharp.target.mk:126: recipe for target 'Release/obj.target/sharp/src/common.o' failed
| make: Leaving directory '/usr/src/app/node_modules/sharp/build'
| make: *** [Release/obj.target/sharp/src/common.o] Error 1
Issue Analytics
- State:
- Created 4 years ago
- Reactions:7
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Error installing Sharp in docker container - npm
Any help greatly appreciated! Docker image is incredibly simple: FROM node:12.13.0-alpine AS alpine WORKDIR ...
Read more >Error to build AWS Lambda Node 14arm64 with Sharp on a ...
I'm changing a node setup from node 14 x64 to node 14 arm64 in an Amazon ECR (Docker) entry. It build with no...
Read more >install-sharp
Using Next.js' built-in Image Optimization requires sharp as a dependency. You are seeing this error because your OS was unable to install sharp...
Read more >[Solved]-Express Sharp install via Docker issue-node.js
[Solved]-Express Sharp install via Docker issue-node.js ... Alpine uses musl for its C library. You can either use a different non-alpine based image...
Read more >jorgehortelano/node-sharp Dockerfile
Sharp library compilation and instalation for docker Alpine ... su node \ && npm install sharp@${SHARP_VERSION} --g --production --unsafe-perm \ && chown ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’ve the exact same error as above in Elastic Beanstalk environment.
@sean7218 https://www.githubstatus.com/incidents/8x69vj1xyp9v