-
Notifications
You must be signed in to change notification settings - Fork 10.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
gatsby-transformer-sharp returns an error #8488
Comments
Hmm, this works for me. Did you see any errors when installing |
It's working for me too.
|
@dumblole I followed the steps that you provided, but unable to reproduce this issue. Also, your |
@kakadiadarpan I just changed my config file but I am getting the exact same error.
Config file:
@stefanprobst |
I have also come across this issue: lovell/sharp#710 Where the error that novascreen gets is very similar to the error I'm getting but he said here lovell/sharp#710 (comment) that all he did was restart his computer but nothing is working. I'm so frustrated that I've spent several days trying to solve this problem |
Have you tried with the x64 version of node? (Download) |
@stefanprobst I have it and I reinstalled it. I also reinstalled windows-build-tools but nothing works :C |
@dumblole You have |
@kmorf No effect |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub issues, we have to clean some of the old issues as many of them have already been resolved with the latest updates. Please make sure to update to the latest Gatsby version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 |
Maybe give this a go? #3917 |
Also, please try updating |
Been having the same issue on a Windows 10 machine; using Node x64, However - a new project with https://github.com/gatsbyjs/gatsby-starter-default, which now includes |
@garethpbk it should be a matter of just upgrading versions as @pieh said here. We recently merged a PR which should (🤞) improve Windows support going forward with sharp and hopefully run into less issues! |
Thanks @garethpbk will try. Update: Worked! When in doubt, nuke it and start over 👍 |
This issue is being closed due to inactivity. Is this a mistake? Please re-open this issue or create a new issue. |
I am receiving this error while trying to get a fresh gatsby-site to run. Tried cleaning npm cache, removing node_module folders to no avail..
That's my gatsby-config
And here's the output of gatsby info --clipboard
|
Just fixed this issue by downgrading node to from 11.3 to 8.14. Now works like charm. |
Even though this might be old, I've actually been gotten this problem twice and so to anyone in the future that might need help for WINDOWS, this is what I did. Not in exact order since I repeated a couple things.
Try to find if it's cached anywhere. Or, you can just go to your npm_cache and delete _libvips folder. Then I did the npm install again. Restart your computer. Deleted node_modules then did It worked. |
@fleshgordo that fixed it for me as well. Any idea why this is an issue? What's the difference between latest and 8.14? |
@sterjoski sharp uses pre-compiled libraries which exist for node 6, 8 and 10, but not 11. http://sharp.pixelplumbing.com/en/stable/install/#building-from-source |
This fixes an issue with the 'gatsby-transformer-sharp' plugin. See gatsbyjs/gatsby#8488 (comment)
This fixes an issue with the 'gatsby-transformer-sharp' plugin. See gatsbyjs/gatsby#8488 (comment)
This fixes an issue with the 'gatsby-transformer-sharp' plugin. See gatsbyjs/gatsby#8488 (comment)
I'm having the same problem. None of the above fixed it. There are 2 problems with Gatsby: 1- Everyone involved in it wants to close all issues as soon as possible. The dirt under the rug is huge. 2- The steps to install, configure and deploy example sites is a NIGHTMARE.
means most sample projects do not work. Burying issues on github fast does not help. Within a few months, the online instructions are all failures with insoluble errors, due to version/requirements mismatches. This is crazy and amateurish. I estimate most new people, over half, give up because of these errors arising from incompatible requirements NOT LISTED ANYWHERE for even the simplest projects. Most people do not have time to spend days trying every combination of commands on various folders. I could setup and install the most complex sample project websites for Jekyll, Hugo & Hexo within hours for each. Without knowing anything about them prior. But basically currently the Gatsby is a massive time killer which turns away most of those interested to look into it. I would advise the founder of Gatsby, now starting his ventured capital startup to be informed of this post. I will not write this again anywhere. You can bury this thread like the others too now. |
@washere Please be specific. Can you list examples or instructions that do not work? We've seen lately problems with |
This means you don't have write access to this directory. Check the directory permissions. The root cause is probably because you tried with |
I have the same problem. I tried to delete Nothing worked. Here is the error
So I installed So one error gone (yay!), but still cannot install sharp....
I decided to try an alternative Yarn...
then
|
I should mention that I used https://github.com/creationix/nvm to install Node 10.x to fix my issue. |
Using stable node version, not latest worked for me as well. |
Been battling with this issue for a while. At first I got a bunch of errors running Then came this error
|
I had the same problem about this gatsby-transformer-sharp. |
Resolved the same issue with
|
Working in a cloud directory can cause this errors. |
Description
Running gatsby develop with this as my config:
NOTE: my code works if you remove
From the config file.
Without the first four plugins my code works
Causes this error:
Steps to reproduce
Clear steps describing how to reproduce the issue. Please please please link to a demo project if possible, this makes your issue much easier to diagnose (seriously).
https://github.com/dumblole/portfolio
Clone the above repo
do a
yarn install
then do a
gatsby develop
Expected result
What should happen?
Site should work and I can start to work with the four new packages I installed.
Actual result
I get an error when running
gatsby develop
Environment
Run
gatsby info --clipboard
in your project directory and paste the output here. Not working? You may need to update your global gatsby-cli -npm install -g gatsby-cli
The text was updated successfully, but these errors were encountered: