gridsome / gridsome

⚡️ The Jamstack framework for Vue.js
https://gridsome.org
MIT License
8.53k stars 490 forks source link

Something went wrong installing the "sharp" module #1621

Open nathansmedley opened 2 years ago

nathansmedley commented 2 years ago

Hi Guys, upon running gridsome develop i get error about it not being able to install the sharp module

PS C:\Users\Name\Documents\GitHub\Web.UK.Site> gridsome develop Mode: undefined APIURL:
Gridsome v0.7.23

Error: Something went wrong installing the "sharp" module

Cannot find module '../build/Release/sharp-win32-x64.node' Require stack:

Possible solutions:

Gridsome Info: System: OS: Windows 10 10.0.19044 CPU: (6) x64 Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz
Binaries: Node: 14.18.3 - C:\Program Files\nodejs\node.EXE
npm: 6.14.15 - C:\Program Files\nodejs\npm.CMD Browsers: Edge: Spartan (44.19041.1266.0), Chromium (98.0.1108.62) npmPackages: @gridsome/cli: ^0.3.4 => 0.3.4 @gridsome/plugin-critical: ^0.2.0 => 0.2.0 @gridsome/plugin-sitemap: ^0.4.0 => 0.4.0 gridsome: ^0.7.23 => 0.7.23

alisalad commented 2 years ago

I have similar errors....have you find solutions?

alisalad commented 2 years ago

remove ("node-sass": "^4.13.1",) from the JSON file.

eddieposey commented 2 years ago

i had the same error - switched to node version 14.18.1 and it worked for me

chrisrueger commented 2 years ago

I had a similar problem with sharp but related to Mac M1 processor. This has helped me.