-
-
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
Linux Error installing sharp #1627
Comments
The salient part of this error is:
You'll need to ensure whatever user is running |
Strange thing is that the user I tried the install has is not the root user but it has sudo privileges and would install about anything without any problem also I tried using the service terminal and it had the same issue. At the end your solution worked using |
Sorry but I thought things were fine but they are not... I managed to install sharp and I tried running it with my pipe scripts but its not working so I tried installing everything again to make sure the installation was correct but I get a different warning now about libvips
correct if I am wrong but it says in the docs: libvips and its dependencies are fetched and stored within node_modules/sharp/vendor during npm install I am not understanding where this libvips should live, globally or within the app module folder in the sharp directory, nevertheless, none of these attempts worked so far. and whats these peer dependencies? |
The warnings are unrelated to sharp and probably come from other dependencies. Run Please can you provide more details about what "but its not working" means. For example, are there any error messages? |
Hi Lovell, before sharp was added to my package file things were installing just fine that’s why I thought the errors were coming from the sharp bundler installation on my Ubuntu server, after all the struggle getting it to work I cleared all the server and started from scratch and it worked just fine no need to use sudo or unsafe flag for install and sharp is now working. Performance is better than I expected too 👏🏻 |
Thank you so much @EFXPROMedia, if it wasnt because of you i didnt finish my app ;) you saved my life ;) |
#metoo I had to run |
I recommend avoiding the use of sudo/root when installing via npm, but if you do, npm's |
I have been working on development on the mac and it seems to be working fine so I thought on deployment things could be just fine since the docs are pretty much similar for installation.
Unfortunately, I am getting the following error log:
is the building mainly failing because of the Linux version no being drawing or something else is happening here?
I am currently using Ubuntu 16.04 and I tried installing using sudo npm install --save sharp I also tried using npm install --build-from-source
The text was updated successfully, but these errors were encountered: