Install failed at: sharp@0.16.2 install: `node-gyp rebuild`
mhannan opened this issue · comments
Hi,
I have encountered an issue while installing the Relax application using "npm install" command. What is the solution to resolve this error? I am using Win10 OS. I am using latest Node version.
As above installation fails, I assume that application will not start/run. But still if I try to run with "npm run startDev" it shows following screen of errors:
Also, while installation is running, some packages shows a notification that I need to install latest version e.g. "MiniMatch new version should be installed which has a fix for Regex DoS attack". Should I install newer version for those packages after first installation finishes? And that will not effect any compatibility?
The error is because sharp
is trying to do its postinstall
stuff, which requires compiling some stuff natively. It requires a C++ compiler of some kind. I see your on a Windows machine. I'm not sure how to get one on there. You will need to Google that. That should fix your issue then.
Just install windows-build-tools