-
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
Cannot find module '../build/Release/sharp.node' #4693
Comments
Had the same error. Deleting |
Had a similar issue and deleting as @huy-nguyen mentions did the trick. |
perfect thanks! |
Thanks folks! Closing as this seems like an npm install issue. |
here steps to resolve this issue:
|
Maybe this can help anyone hitting this bug At least for us this was caused due to an old python version, once we've upgraded it we're able to move forward. |
Use stable version of node, not latest. That fixed errors for me. |
Hi all, I am running into a remarkably similar issue, but while trying to download This is my first time developing with Gatsby, so apologies if the issue is obvious and I just don't know where to look. result of
I've tried every combination of deleting Any help is appreciated. Thanks so much. |
Try this command it work for me |
@Raphjacksun7 Nice. Netlify was giving me trouble, not my local machine, no matter what node version and deleting of node modules. So installing sharp manually was key. |
how do you add sharp manually? |
tracking of issue can found here: gatsbyjs/gatsby#4693
Thanks @Raphjacksun7 the command |
I did set Putting it back to false (the default) and deleting node_modules/sharp and reinstalling fixed it. |
@bartTC Thanks, this haunted me for a whole night, still, "npm config set ignore-scripts true" is very important, is there any workaround? |
Exactly ! |
You're welcome |
If anyone runs into this problem after updating Mac OS and the other solutions don't work, the reason might be that your Xcode commandline tools need to be reinstalled. https://anansewaa.com/gyp-no-xcode-or-clt-version-detected-macos-catalina/ |
Description
Running
gatsby develop
throws an error:This started happening after I tried to install
gatsby-plugin-google-analytics
and copy-pasted the necessary lines into thegatsby-config.js
file:See below for
gatsby-config.js
.Reverting to any previously working commit doesn't fix the error, so it seems like some sort of caching issue.
The only workaround that worked for me is to deleting the entire project and re-clone it from git. Then everything works again:
It seems like any "weird" issue with gatsby can be fixed by committing your changes to git, nuking it all, and re-downloading.
Steps to reproduce
Expected result
Gatsby development server should be running.
Actual result
Gatsby throws an error described above and exits.
Environment
npm list gatsby
): 1.9.236gatsby --version
): 1.1.48File contents (if changed):
gatsby-config.js
:package.json
:The text was updated successfully, but these errors were encountered: