$ node --version
v11.15.0
$ yarn --version
1.17.3
$ gatsby --version
Gatsby CLI version: 2.7.40
$ gatsby new gatsby-starter-docs https://github.com/ericwindmill/gatsby-starter-docs
info Creating new site from git: https://github.com/ericwindmill/gatsby-starter-docs.git
Cloning into 'gatsby-starter-docs'...
remote: Enumerating objects: 699, done.
remote: Total 699 (delta 0), reused 0 (delta 0), pack-reused 699
Receiving objects: 100% (699/699), 1.09 MiB | 1.48 MiB/s, done.
success Created starter directory layout
info Installing packages...
yarn install v1.17.3
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents@1.1.2: The platform "linux" is incompatible with this module.
info "fsevents@1.1.2" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning "gatsby > express-graphql@0.6.6" has incorrect peer dependency "graphql@^0.10.0".
warning "gatsby > graphql-relay@0.5.2" has incorrect peer dependency "graphql@^0.5.0 || ^0.6.0 || ^0.7.0 || ^0.8.0-b || ^0.9.0 || ^0.10.0".
warning "gatsby > postcss-cssnext@2.11.0" has unmet peer dependency "caniuse-db@^1.0.30000652".
warning " > gatsby-plugin-styled-components@2.0.11" has unmet peer dependency "babel-plugin-styled-components@>1.5.0".
warning "react-icons > react-icon-base@2.1.0" has unmet peer dependency "prop-types@*".
[4/4] Building fresh packages...
[1/3] ⡀ uws
[-/3] ⡀ waiting...
error /home/gback/gatsby-starter-docs/node_modules/sharp: Command failed.
Exit code: 1
Command: node-gyp rebuild
Arguments:
Directory: /home/gback/gatsby-starter-docs/node_modules/sharp
Output:
gyp info it worked if it ends with ok
gyp info using node-gyp@5.0.3
gyp info using node@11.15.0 | linux | x64
gyp info find Python using Python version 2.7.15 found at "/usr/bin/python"
gyp info spawn /usr/bin/python
gyp info spawn args [ '/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'make',
gyp info spawn args '-I',
gyp info spawn args '/home/gback/gatsby-starter-docs/node_modules/sharp/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/home/gback/.cache/node-gyp/11.15.0/include/node/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/home/gback/.cache/node-gyp/11.15.0',
gyp info spawn args '-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=/home/gback/.cache/node-gyp/11.15.0/<(target_arch)/node.lib',
gyp info spawn args '-Dmodule_root_dir=/home/gback/gatsby-starter-docs/node_modules/sharp',
gyp info spawn args '-Dnode_engine=v8',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'build',
gyp info spawn args '-Goutput_dir=.' ]
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
make: Entering directory '/home/gback/gatsby-starter-docs/node_modules/sharp/build'
TOUCH Release/obj.target/libvips-cpp.stamp
CXX(target) Release/obj.target/sharp/src/common.o
In file included from ../../nan/nan.h:192:0,
from ../src/common.cc:22:
../../nan/nan_maybe_43_inl.h: In function ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’:
../../nan/nan_maybe_43_inl.h:112:15: error: ‘class v8::Object’ has no member named ‘ForceSet’
return obj->ForceSet(isolate->GetCurrentContext(), key, value, attribs);
^~~~~~~~
In file included from ../../nan/nan_new.h:189:0,
from ../../nan/nan.h:198,
from ../src/common.cc:22:
../../nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBase<v8::StringObject>::return_t Nan::imp::Factory<v8::StringObject>::New(v8::Local<v8::String>)’:
../../nan/nan_implementation_12_inl.h:337:37: warning: ‘static v8::Local<v8::Value> v8::StringObject::New(v8::Local<v8::String>)’ is deprecated: Use Isolate* version [-Wdeprecated-declarations]
return v8::StringObject::New(value).As<v8::StringObject>();
^
In file included from /home/gback/.cache/node-gyp/11.15.0/include/node/v8.h:26:0,
from /home/gback/.cache/node-gyp/11.15.0/include/node/node.h:63,
from ../src/common.cc:20:
/home/gback/.cache/node-gyp/11.15.0/include/node/v8.h:5242:37: note: declared here
static Local<Value> New(Local<String> value));
^
/home/gback/.cache/node-gyp/11.15.0/include/node/v8config.h:326:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
In file included from ../src/common.cc:22:0:
../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’:
../../nan/nan.h:835:60: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
v8::Isolate::GetCurrent(), target, func, argc, argv);
^
In file included from ../src/common.cc:20:0:
/home/gback/.cache/node-gyp/11.15.0/include/node/node.h:174:50: note: declared here
NODE_EXTERN v8::Local<v8::Value> MakeCallback(
^
/home/gback/.cache/node-gyp/11.15.0/include/node/node.h:93:42: note: in definition of macro ‘NODE_DEPRECATED’
__attribute__((deprecated(message))) declarator
^~~~~~~~~~
In file included from ../src/common.cc:22:0:
../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’:
../../nan/nan.h:850:62: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
v8::Isolate::GetCurrent(), target, symbol, argc, argv);
^
In file included from ../src/common.cc:20:0:
/home/gback/.cache/node-gyp/11.15.0/include/node/node.h:167:50: note: declared here
NODE_EXTERN v8::Local<v8::Value> MakeCallback(
^
/home/gback/.cache/node-gyp/11.15.0/include/node/node.h:93:42: note: in definition of macro ‘NODE_DEPRECATED’
__attribute__((deprecated(message))) declarator
^~~~~~~~~~
In file included from ../src/common.cc:22:0:
../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)’:
../../nan/nan.h:865:62: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
v8::Isolate::GetCurrent(), target, method, argc, argv);
^
In file included from ../src/common.cc:20:0:
/home/gback/.cache/node-gyp/11.15.0/include/node/node.h:160:50: note: declared here
NODE_EXTERN v8::Local<v8::Value> MakeCallback(
^
/home/gback/.cache/node-gyp/11.15.0/include/node/node.h:93:42: note: in definition of macro ‘NODE_DEPRECATED’
__attribute__((deprecated(message))) declarator
^~~~~~~~~~
In file included from ../src/common.cc:22:0:
../../nan/nan.h: In constructor ‘Nan::Utf8String::Utf8String(v8::Local<v8::Value>)’:
../../nan/nan.h:911:53: warning: ‘v8::Local<v8::String> v8::Value::ToString() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
v8::Local<v8::String> string = from->ToString();
^
In file included from /home/gback/.cache/node-gyp/11.15.0/include/node/node.h:63:0,
from ../src/common.cc:20:
/home/gback/.cache/node-gyp/11.15.0/include/node/v8.h:10251:15: note: declared here
Local<String> Value::ToString() const {
^~~~~
In file included from ../src/common.cc:22:0:
../../nan/nan.h:921:74: warning: ‘int v8::String::WriteUtf8(char*, int, int*, int) const’ is deprecated: Use Isolate* version [-Wdeprecated-declarations]
length_ = string->WriteUtf8(str_, static_cast<int>(len), 0, flags);
^
In file included from /home/gback/.cache/node-gyp/11.15.0/include/node/v8.h:26:0,
from /home/gback/.cache/node-gyp/11.15.0/include/node/node.h:63,
from ../src/common.cc:20:
/home/gback/.cache/node-gyp/11.15.0/include/node/v8.h:2754:21: note: declared here
int WriteUtf8(char* buffer, int length = -1,
^
/home/gback/.cache/node-gyp/11.15.0/include/node/v8config.h:326:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
In file included from ../src/common.cc:22:0:
../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::Callback::Call_(v8::Isolate*, v8::Local<v8::Object>, int, v8::Local<v8::Value>*) const’:
../../nan/nan.h:1479:5: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
));
^
In file included from ../src/common.cc:20:0:
/home/gback/.cache/node-gyp/11.15.0/include/node/node.h:174:50: note: declared here
NODE_EXTERN v8::Local<v8::Value> MakeCallback(
^
/home/gback/.cache/node-gyp/11.15.0/include/node/node.h:93:42: note: in definition of macro ‘NODE_DEPRECATED’
__attribute__((deprecated(message))) declarator
^~~~~~~~~~
../src/common.cc: In function ‘std::tuple<int, int> sharp::CalculateCrop(int, int, int, int, int)’:
../src/common.cc:392:13: warning: this statement may fall through [-Wimplicit-fallthrough=]
top = inHeight - outHeight;
~~~~^~~~~~~~~~~~~~~~~~~~~~
../src/common.cc:393:7: note: here
case 7:
^~~~
sharp.target.mk:125: recipe for target 'Release/obj.target/sharp/src/common.o' failed
make: *** [Release/obj.target/sharp/src/common.o] Error 1
make: Leaving directory '/home/gback/gatsby-starter-docs/node_modules/sharp/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:196:23)
gyp ERR! stack at ChildProcess.emit (events.js:193:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:255:12)
gyp ERR! System Linux 4.15.0-58-generic
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/gback/gatsby-starter-docs/node_modules/sharp
gyp ERR! node -v v11.15.0
gyp ERR! node-gyp -v v5.0.3
ERROR
Command failed: yarnpkg
Error: Command failed: yarnpkg
- index.js:174 makeError
[lib]/[gatsby]/[gatsby-cli]/[execa]/index.js:174:9
- index.js:278 Promise.all.then.arr
[lib]/[gatsby]/[gatsby-cli]/[execa]/index.js:278:16
- task_queues.js:86 processTicksAndRejections
internal/process/task_queues.js:86:5
See below: