-
-
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
It's not possible to install sharp #2942
Comments
This looks like a filesystem permissions problem. Please ensure the user you are running What is the complete output of running What is the output of running |
Npm has write access in the directory and in the npm cache. I tried installing sharp both with npm 6.x and with the latest version... unfortunately with no success yet. OUTPUT "npm install --verbose sharp": OUTPUT "npx envinfo --binaries --system": |
Please can you provide the complete output of running |
Sure. OUTPUT "npm install --verbose sharp" in empty directory using [email protected]:
sharp: Using cached C:\Users\C1\AppData\Roaming\npm-cache_libvips\libvips-8.11.3-win32-x64.tar.br
6 packages are looking for funding found 0 vulnerabilities npm verb exit [ 0, true ] |
Thank you, that appears to have installed successfully. Your next step is to try to work out what filesystem permissions are different when you use an existing directory and/or npm v8, as something relating to one or both will probably be causing this. |
Thank you. Yes it is installed now, unfortunately when I git push then an error pops: It is the same error found in the issue n. #1883 and For more reference, the complete error that pops when trying to download sharp from github: |
This error and the original error mention Linux. The successful installation is on Windows. Are you using Windows Subsystem for Linux (WSL)? Please can you provide significantly more context about the Windows vs Linux situation going on here. (The two previous issues you quote might have similar effects but are unrelated.) |
Yes sure, I am coding on windows but I am using Heroku for fast deployment, Heroku uses an operating system image called stack which is linux based. So when downloading on that operating system the error pops. Is there another way to include vips/vips8? |
Please include this kind of information in your first post when opening issues against open source software. Please can you re-answer all of the questions I've asked in the context of Heroku rather than Windows. Please provide too much information rather than too little. |
I thought I gave enough information pasting the whole logs into the post. The output of the issue during the installation is above, unfortunately I can't find any documentation about the filesystem permissions of heroku. You can close the issue, I am developing a fast tool which does just what I need because it looks like I might need days to solve this issue. Thank you for all the informations. |
Should something like this happen again, the best thing to do is to create minimal, standalone code and config (perhaps as a git repository) that exhibits the behaviour, which will then make it much easier for someone else to reproduce the same behaviour. A lot of people use sharp with Heroku so there's probably something not quite right about the configuration in this particular case. Good luck! |
|
I am currently running into the same thing. I vendored the build, and the build is now going fine. But when uploaded to the cloud foundry environment the rebuild fails on this exact error. Even though
is provided. However the path while building is different from the path on the cloud foundry environment. Could that be the 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
The text was updated successfully, but these errors were encountered: