Skip to content
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

error sharp module #7

Closed
dnamyslak opened this issue Jun 7, 2020 · 4 comments · Fixed by #9 or #10
Closed

error sharp module #7

dnamyslak opened this issue Jun 7, 2020 · 4 comments · Fixed by #9 or #10
Labels
windows issue Only occurring on windows platform

Comments

@dnamyslak
Copy link

dnamyslak commented Jun 7, 2020

I am getting:

Error:
Something went wrong installing the "sharp" module

@dnamyslak
Copy link
Author

unless you update
here is the solution

https://blog.joshwalsh.me/gatsby-update-sharp/

@Ghustavh97
Copy link
Contributor

@dnamyslak Thanks for the solution but I will need the full error message to help verify the problem and push and update if need be.

@Ghustavh97 Ghustavh97 added the needs more info Needs more information label Jun 7, 2020
@dnamyslak
Copy link
Author

full error:

`"C:\Program Files\nodejs\node.exe" X:\DAVEN\nodejs-temp\bin\www
X:\DAVEN\nodejs-temp\node_modules\sharp\lib\constructor.js:34
throw new Error(error);
^

Error:
Something went wrong installing the "sharp" module

Nie mo¿na odnale�æ okre�lonej procedury.
\?\X:\DAVEN\nodejs-temp\node_modules\sharp\build\Release\sharp.node

  • Remove the "node_modules/sharp" directory then run
    "npm install --ignore-scripts=false --verbose" and look for errors

  • Consult the installation documentation at https://sharp.pixelplumbing.com/install

  • Search for this error at https://github.com/lovell/sharp/issues

    at Object. (X:\DAVEN\nodejs-temp\node_modules\sharp\lib\constructor.js:34:9)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Module.require (internal/modules/cjs/loader.js:692:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at Object. (X:\DAVEN\nodejs-temp\node_modules\sharp\lib\index.js:3:15)
    at Module._compile (internal/modules/cjs/loader.js:778:30)

Process finished with exit code 1`

@dnamyslak
Copy link
Author

the solution for you is mentioned here: https://blog.joshwalsh.me/gatsby-update-sharp/
you need to "update dependency to the latest version"

@Ghustavh97 Ghustavh97 added the windows issue Only occurring on windows platform label Jun 8, 2020
@Ghustavh97 Ghustavh97 reopened this Jun 9, 2020
@Ghustavh97 Ghustavh97 linked a pull request Jun 11, 2020 that will close this issue
@Ghustavh97 Ghustavh97 removed the needs more info Needs more information label Jan 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
windows issue Only occurring on windows platform
Projects
None yet
2 participants