dominicabela / gatsby-starter-material-ui

A gatsby starter with Material UI
https://material-ui-starter.netlify.com/
MIT License
29 stars 10 forks source link

Fail to install due to dependency problem #6

Closed SandersAaronD closed 1 year ago

SandersAaronD commented 3 years ago

I'm trying to install from this starter, and it looks like one of your dependencies is causing a problem.

Error message:

gatsby new frontend https://github.com/dominicabela/gatsby-starter-material-ui info Creating new site from git: https://github.com/dominicabela/gatsby-starter-material-ui.git

Cloning into 'frontend'... remote: Enumerating objects: 26, done. remote: Counting objects: 100% (26/26), done. remote: Compressing objects: 100% (25/25), done. remote: Total 26 (delta 1), reused 11 (delta 1), pack-reused 0 success Created starter directory layout info Installing packages...

sharp@0.22.1 install /home/segyges/Documents/code/sandersaarond.com/frontend/node_modules/sharp (node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)

info sharp Using cached /home/segyges/.npm/_libvips/libvips-8.7.4-linux-x64.tar.gz prebuild-install WARN install No prebuilt binaries found (target=14.16.1 runtime=node arch=x64 libc= platform=linux) make: Entering directory '/home/segyges/Documents/code/sandersaarond.com/frontend/node_modules/sharp/build' TOUCH Release/obj.target/libvips-cpp.stamp CXX(target) Release/obj.target/sharp/src/common.o CXX(target) Release/obj.target/sharp/src/metadata.o CXX(target) Release/obj.target/sharp/src/stats.o ../src/stats.cc: In member function ‘virtual void StatsWorker::HandleOKCallback()’: ../src/stats.cc:130:37: error: no matching function for call to ‘v8::Array::Set(int&, v8::Local&)’ 130 | channels->Set(i, channelStat); | ^ In file included from /home/segyges/.cache/node-gyp/14.16.1/include/node/node.h:67, from ../src/stats.cc:19: /home/segyges/.cache/node-gyp/14.16.1/include/node/v8.h:3670:37: note: candidate: ‘v8::Maybe v8::Object::Set(v8::Local, v8::Local, v8::Local)’ 3670 | V8_WARN_UNUSED_RESULT Maybe Set(Local context, | ^~~ /home/segyges/.cache/node-gyp/14.16.1/include/node/v8.h:3670:37: note: candidate expects 3 arguments, 2 provided /home/segyges/.cache/node-gyp/14.16.1/include/node/v8.h:3673:37: note: candidate: ‘v8::Maybe v8::Object::Set(v8::Local, uint32_t, v8::Local)’ 3673 | V8_WARN_UNUSED_RESULT Maybe Set(Local context, uint32_t index, | ^~~ /home/segyges/.cache/node-gyp/14.16.1/include/node/v8.h:3673:37: note: candidate expects 3 arguments, 2 provided make: *** [sharp.target.mk:138: Release/obj.target/sharp/src/stats.o] Error 1 make: Leaving directory '/home/segyges/Documents/code/sandersaarond.com/frontend/node_modules/sharp/build' gyp ERR! build error gyp ERR! stack Error: make failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/home/segyges/.nvm/versions/node/v14.16.1/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23) gyp ERR! stack at ChildProcess.emit (events.js:315:20) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12) gyp ERR! System Linux 5.8.0-50-generic gyp ERR! command "/home/segyges/.nvm/versions/node/v14.16.1/bin/node" "/home/segyges/.nvm/versions/node/v14.16.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /home/segyges/Documents/code/sandersaarond.com/frontend/node_modules/sharp gyp ERR! node -v v14.16.1 gyp ERR! node-gyp -v v5.1.0 gyp ERR! not ok npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! sharp@0.22.1 install: (node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy) npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the sharp@0.22.1 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:

ERROR

Command failed with exit code 1: npm install

Error: Command failed with exit code 1: npm install

SandersAaronD commented 1 year ago

Lack of followup leads one to assume this does not matter.