question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

It's not possible to install sharp

See original GitHub issue

I used sharp for about a year on another app, no problems at all for that period. Now I am trying to install it on another app, through npm, and it is just not possible. I tried upgrading my npm, I tried using both --unsafe-perm and --ignore-scripts, I tried deleting the npm_modules and package.json, to then run npm install… It just doesn’t work! I even tried adding “minipass”: “2.7.0” on dependencies, nothing is fixing the issue.

I’ve seen the same issue popping up from 2019

ERROR: sharp: Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.11.3/libvips-8.11.3-linux-x64.tar.br remote: sh: 1: prebuild-install: Permission denied remote: make: Entering directory '/tmp/build_e87a24ec/node_modules/sharp/build' remote: CC(target) Release/obj.target/nothing/../node-addon-api/nothing.o remote: AR(target) Release/obj.target/../node-addon-api/nothing.a remote: COPY Release/nothing.a remote: TOUCH Release/obj.target/libvips-cpp.stamp remote: CXX(target) Release/obj.target/sharp-linux-x64/src/common.o remote: ../src/common.cc:24:10: fatal error: vips/vips8: No such file or directory remote: #include <vips/vips8> remote: ^~~~~~~~~~~~ remote: compilation terminated. remote: sharp-linux-x64.target.mk:139: recipe for target 'Release/obj.target/sharp-linux-x64/src/common.o' failed remote: make: *** [Release/obj.target/sharp-linux-x64/src/common.o] Error 1 remote: make: Leaving directory '/tmp/build_e87a24ec/node_modules/sharp/build' remote: gyp ERR! build error

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:14 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
beita1commented, Dec 21, 2021

I had the same issue the first time when I executed npm i sharp, but the second time I executed npm i -verbose sharp and it installed successfully.

0reactions
beita1commented, Jun 20, 2022

已收到,谢谢

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't install Sharp - node.js - Stack Overflow
I faced a problem with sharp on multiple OS/distros as I started working on a project about 3 years old. This solution solved...
Read more >
Unable to install sharp · Issue #1783 · lovell/sharp - GitHub
Failed at the sharp@0.22.1 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above ......
Read more >
Installation - High performance Node.js image processing
The following platforms have prebuilt libvips but not sharp: ... At npm install time, prebuilt binaries are automatically selected for the current OS ......
Read more >
Software Setup Guide - Sharp
It is not possible to install only the driver on a PC-Fax Driver. The menu will only show the printer driver. 1 Select...
Read more >
install-sharp - Next.js
Possible Ways to Fix It ... Option 1: Use a different version of Node.js and try to install sharp again. ... Option 2:...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found