I really love the look of this template, but so far I have been unsuccessful in being able to build it using the README instruction. It looks like there might be a problem with dependencies, and I'm also getting warnings and errors related to yarn.
Last login: Fri Aug 17 11:12:18 on ttys000
mc-MBP:~ mc$ gatsby new ~/workspaces/mc_blog https://github.com/greglobinski/gatsby-starter-hero-blog.git
info Creating new site from git: https://github.com/greglobinski/gatsby-starter-hero-blog.git
Cloning into '/Users/mc/workspaces/mc_blog'...
remote: Counting objects: 473, done.
remote: Total 473 (delta 0), reused 1 (delta 0), pack-reused 472
Receiving objects: 100% (473/473), 9.17 MiB | 8.42 MiB/s, done.
Resolving deltas: 100% (183/183), done.
success Created starter directory layout
info Installing packages...
yarn install v1.9.4
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
Should I have yarn installed? I've tried to stick to just using npm as my package manager, but I do have yarn installed via Homebrew.
[1/4] 🔍 Resolving packages...
[2/4] 🚚 Fetching packages...
warning [email protected]: The engine "yargs" appears to be invalid.
[3/4] 🔗 Linking dependencies...
warning " > [email protected]" has unmet peer dependency "react@>=16.0.0".
warning " > [email protected]" has unmet peer dependency "react-dom@>=16.0.0".
warning "antd > [email protected]" has unmet peer dependency "react@^0.14.0 || ^15.0.0 || ^16.0.0".
warning "antd > [email protected]" has unmet peer dependency "immutable@^3.7.4".
warning "antd > [email protected]" has unmet peer dependency "react@^0.14.0 || ^15.0.0-0 || ^16.0.0".
warning "antd > [email protected]" has unmet peer dependency "react-dom@^0.14.0 || ^15.0.0-0 || ^16.0.0".
warning "antd > [email protected]" has unmet peer dependency "react@^0.14.0 || ^15.0.1 || ^16.0.0".
warning "antd > [email protected]" has unmet peer dependency "react-dom@^0.14.0 || ^15.0.1 || ^16.0.0".
warning "antd > rc-editor-mention > [email protected]" has unmet peer dependency "react@^0.14.0 || ^15.0.0-rc || ^16.0.0-rc || ^16.0.0".
warning "antd > rc-editor-mention > [email protected]" has unmet peer dependency "react-dom@^0.14.0 || ^15.0.0-rc || ^16.0.0-rc || ^16.0.0".
warning "antd > rc-tabs > [email protected]" has unmet peer dependency "react@^0.14.3 || ^15.0.0 || ^16.0.0".
warning "gatsby > [email protected]" has incorrect peer dependency "webpack@^2.0.0 || ^3.0.0 || ^4.0.0".
warning "gatsby > [email protected]" has unmet peer dependency "caniuse-db@^1.0.30000652".
warning "gatsby-transformer-remark > [email protected]" has unmet peer dependency "graphql@>=0.4.0".
warning " > [email protected]" has unmet peer dependency "react-dom@^15.4.2".
warning " > [email protected]" has unmet peer dependency "[email protected] || 16.x".
warning "react-facebook > [email protected]" has unmet peer dependency "[email protected] || 16.x".
warning " > [email protected]" has unmet peer dependency "react@>=15.0.0".
warning "react-helmet > [email protected]" has unmet peer dependency "react@^0.13.0 || ^0.14.0 || ^15.0.0 || ^16.0.0".
warning " > [email protected]" has unmet peer dependency "react@^0.14.0 || ^15.0.0 || ^16.0.0".
warning " > [email protected]" has unmet peer dependency "react-dom@^0.14.0 || ^15.0.0 || ^16.0.0".
warning "react-icons > [email protected]" has unmet peer dependency "react@*".
warning "react-icons > [email protected]" has unmet peer dependency "react-dom@*".
warning "react-icons > [email protected]" has unmet peer dependency "prop-types@*".
warning "react-instantsearch > [email protected]" has unmet peer dependency "react@>= 15.3.0 < 17".
warning "react-instantsearch > [email protected]" has unmet peer dependency "react@>= 15.3.0 < 17".
warning "react-instantsearch > [email protected]" has unmet peer dependency "react-dom@>= 15.3.0 < 17".
warning "react-instantsearch > [email protected]" has unmet peer dependency "react@>= 15.3.0 < 17".
warning "react-instantsearch > [email protected]" has unmet peer dependency "react-native@>= 0.32.0".
warning "react-instantsearch > react-instantsearch-core > [email protected]" has unmet peer dependency "algoliasearch@>= 3.1 < 4".
warning " > [email protected]" has unmet peer dependency "react@>=15.3.0".
warning " > [email protected]" has unmet peer dependency "react-dom@>=15.3.0".
warning " > [email protected]" has unmet peer dependency "react@^0.13.0 || ^0.14.0 || ^15.0.0 || ^16.0.0-0".
warning " > [email protected]" has unmet peer dependency "react@^0.14.0 || ^15.0.0 || ^16.0.0".
warning " > [email protected]" has unmet peer dependency "react-dom@^0.14.0 || ^15.0.0 || ^16.0.0".
warning " > [email protected]" has unmet peer dependency "[email protected] || 16.x.x".
warning " > [email protected]" has unmet peer dependency "graphql@^0.12.0 || ^0.13.0".
warning "eslint-plugin-graphql > [email protected]" has unmet peer dependency "graphql@^0.11.0 || ^0.12.0 || ^0.13.0".
warning "eslint-plugin-graphql > graphql-config > [email protected]" has unmet peer dependency "graphql@^0.11.0 || ^0.12.0 || ^0.13.0".
warning " > [email protected]" has unmet peer dependency "caniuse-lite@^1.0.30000697".
warning "postcss-loader > [email protected]" has unmet peer dependency "webpack@^2.0.0 || ^3.0.0 || ^4.0.0".
From what I've seen about these dependency warnings (and trying to resolve them manually), some of these packages would require multiple installations of different versions of their dependencies.
[4/4] 📃 Building fresh packages...
[1/9] ⠂ fsevents
[2/9] ⠂ sharp
[8/9] ⠂ sharp
[7/9] ⠂ fsevents
error /Users/mc/workspaces/mc_blog/node_modules/deasync: Command failed.
Exit code: 1
Command: node ./build.js
Arguments:
Directory: /Users/mc/workspaces/mc_blog/node_modules/deasync
Output:
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | darwin | x64
gyp info spawn /Library/Frameworks/Python.framework/Versions/2.7/bin/python2
gyp info spawn args [ '/usr/local/Cellar/node/10.8.0/libexec/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 '/Users/mc/workspaces/mc_blog/node_modules/deasync/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/usr/local/Cellar/node/10.8.0/libexec/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/mc/.node-gyp/10.8.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=/Users/mc/.node-gyp/10.8.0',
gyp info spawn args '-Dnode_gyp_dir=/usr/local/Cellar/node/10.8.0/libexec/lib/node_modules/npm/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=/Users/mc/.node-gyp/10.8.0/<(target_arch)/node.lib',
gyp info spawn args '-Dmodule_root_dir=/Users/mc/workspaces/mc_blog/node_modules/deasync',
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' ]
c++: error: unrecognized command line option '-stdlib=libc++'
make: *** [Release/obj.target/deasync/src/deasync.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/Cellar/node/10.8.0/libexec/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:182:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:238:12)
gyp ERR! System Darwin 17.5.0
gyp ERR! command "/usr/local/Cellar/node/10.8.0/bin/node" "/usr/local/Cellar/node/10.8.0/libexec/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/mc/workspaces/mc_blog/node_modules/deasync
gyp ERR! node -v v10.8.0
gyp ERR! node-gyp -v v3.7.0
gyp ERR! not ok
warning Error running install script for optional dependency: "/Users/mc/workspaces/mc_blog/node_modules/fsevents: Command failed.
Exit code: 1
Command: node install
Arguments:
Directory: /Users/mc/workspaces/mc_blog/node_modules/fsevents
Output:
node-pre-gyp info it worked if it ends with ok
node-pre-gyp info using [email protected]
node-pre-gyp info using [email protected] | darwin | x64
node-pre-gyp info check checked for \"/Users/mc/workspaces/mc_blog/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64/fse.node\" (not found)
node-pre-gyp http GET https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.2.2/fse-v1.2.2-node-v64-darwin-x64.tar.gz
node-pre-gyp http 404 https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.2.2/fse-v1.2.2-node-v64-darwin-x64.tar.gz
node-pre-gyp ERR! Tried to download(404): https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.2.2/fse-v1.2.2-node-v64-darwin-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v64 ABI, unknown) (falling back to source compile with node-gyp)
node-pre-gyp http 404 status code downloading tarball https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.2.2/fse-v1.2.2-node-v64-darwin-x64.tar.gz
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | darwin | x64
gyp info ok
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | darwin | x64
gyp info spawn /Library/Frameworks/Python.framework/Versions/2.7/bin/python2
gyp info spawn args [ '/usr/local/Cellar/node/10.8.0/libexec/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 '/Users/mc/workspaces/mc_blog/node_modules/fsevents/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/usr/local/Cellar/node/10.8.0/libexec/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/mc/.node-gyp/10.8.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=/Users/mc/.node-gyp/10.8.0',
gyp info spawn args '-Dnode_gyp_dir=/usr/local/Cellar/node/10.8.0/libexec/lib/node_modules/npm/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=/Users/mc/.node-gyp/10.8.0/<(target_arch)/node.lib',
gyp info spawn args '-Dmodule_root_dir=/Users/mc/workspaces/mc_blog/node_modules/fsevents',
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 ok
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | darwin | x64
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
c++: error: unrecognized command line option '-stdlib=libc++'
make: *** [Release/.node] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/Cellar/node/10.8.0/libexec/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:182:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:238:12)
gyp ERR! System Darwin 17.5.0
gyp ERR! command \"/usr/local/Cellar/node/10.8.0/bin/node\" \"/usr/local/Cellar/node/10.8.0/libexec/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js\" \"build\" \"--fallback-to-build\" \"--module=/Users/mc/workspaces/mc_blog/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64/fse.node\" \"--module_name=fse\" \"--module_path=/Users/mc/workspaces/mc_blog/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64\" \"--napi_version=3\" \"--node_abi_napi=napi\"
gyp ERR! cwd /Users/mc/workspaces/mc_blog/node_modules/fsevents
gyp ERR! node -v v10.8.0
gyp ERR! node-gyp -v v3.7.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'node-gyp build --fallback-to-build --module=/Users/mc/workspaces/mc_blog/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64/fse.node --module_name=fse --module_path=/Users/mc/workspaces/mc_blog/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64 --napi_version=3 --node_abi_napi=napi' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/Users/mc/workspaces/mc_blog/node_modules/fsevents/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:182:13)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:962:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:249:5)
node-pre-gyp ERR! System Darwin 17.5.0
node-pre-gyp ERR! command \"/usr/local/Cellar/node/10.8.0/bin/node\" \"/Users/mc/workspaces/mc_blog/node_modules/fsevents/node_modules/node-pre-gyp/bin/node-pre-gyp\" \"install\" \"--fallback-to-build\"
node-pre-gyp ERR! cwd /Users/mc/workspaces/mc_blog/node_modules/fsevents
node-pre-gyp ERR! node -v v10.8.0
node-pre-gyp ERR! node-pre-gyp -v v0.9.1
node-pre-gyp ERR! not ok
SOLINK_MODULE(target) Release/.node
Failed to execute 'node-gyp build --fallback-to-build --module=/Users/mc/workspaces/mc_blog/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64/fse.node --module_name=fse --module_path=/Users/mc/workspaces/mc_blog/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64 --napi_version=3 --node_abi_napi=napi' (1)"
info This module is OPTIONAL, you can safely ignore this error
error Command failed: yarnpkg
Error: Command failed: yarnpkg
- index.js:236 Promise.all.then.arr
[lib]/[gatsby-cli]/[execa]/index.js:236:11
- util.js:16 tryCatcher
[lib]/[gatsby-cli]/[bluebird]/js/release/util.js:16:23
- promise.js:512 Promise._settlePromiseFromHandler
[lib]/[gatsby-cli]/[bluebird]/js/release/promise.js:512:31
- promise.js:569 Promise._settlePromise
[lib]/[gatsby-cli]/[bluebird]/js/release/promise.js:569:18
- promise.js:614 Promise._settlePromise0
[lib]/[gatsby-cli]/[bluebird]/js/release/promise.js:614:10
- promise.js:693 Promise._settlePromises
[lib]/[gatsby-cli]/[bluebird]/js/release/promise.js:693:18
- promise.js:638 Promise._fulfill
[lib]/[gatsby-cli]/[bluebird]/js/release/promise.js:638:18
- promise_array.js:126 PromiseArray._resolve
[lib]/[gatsby-cli]/[bluebird]/js/release/promise_array.js:126:19
- promise_array.js:144 PromiseArray._promiseFulfilled
[lib]/[gatsby-cli]/[bluebird]/js/release/promise_array.js:144:14
- promise.js:574 Promise._settlePromise
[lib]/[gatsby-cli]/[bluebird]/js/release/promise.js:574:26
- promise.js:614 Promise._settlePromise0
[lib]/[gatsby-cli]/[bluebird]/js/release/promise.js:614:10
- promise.js:693 Promise._settlePromises
[lib]/[gatsby-cli]/[bluebird]/js/release/promise.js:693:18
- async.js:133 Async._drainQueue
[lib]/[gatsby-cli]/[bluebird]/js/release/async.js:133:16
- async.js:143 Async._drainQueues
[lib]/[gatsby-cli]/[bluebird]/js/release/async.js:143:10
- async.js:17 Immediate.Async.drainQueues [as _onImmediate]
[lib]/[gatsby-cli]/[bluebird]/js/release/async.js:17:14
mc-MBP:mc_blog$ gatsby develop
success delete html and css files from previous builds — 0.009 s
success open and validate gatsby-config — 0.008 s
success copy gatsby files — 0.015 s
error UNHANDLED EXCEPTION
Error: Cannot find module '../build/Release/sharp.node'