とにかくblogをつくりたい
https://www.gatsbyjs.com/tutorial/ https://www.gatsbyjs.com/docs/quick-start/
https://www.gatsbyjs.com/starters/gatsbyjs/gatsby-starter-blog/ https://github.com/gatsbyjs/gatsby-starter-blog
インストール
ねんのため、nodeを最新にしておいて、、
brew upgrade node
14:59:41 tkrimac3:~/proj/flutter-firebase-gatsby-takeru[master]% node -v
v15.0.1
14:59:43 tkrimac3:~/proj/flutter-firebase-gatsby-takeru[master]% npm -v
7.0.3
15:00:30 tkrimac3:~/proj/flutter-firebase-gatsby-takeru[master]% npm install -g gatsby-cli
npm ERR! Cannot read property 'matches' of undefined
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/takeru/.npm/_logs/2020-10-26T06_00_41_739Z-debug.log
は?いきなりなんだよ。
https://nodejs.org/ja/download/ おすすめは12か・・・
15:11:49 tkrimac3:~/proj/flutter-firebase-gatsby-takeru[master]% brew uninstall node
Uninstalling /usr/local/Cellar/node/15.0.1... (3,331 files, 61.2MB)
15:16:35 tkrimac3:~/proj/flutter-firebase-gatsby-takeru[master]% node -v
v12.19.0
15:16:43 tkrimac3:~/proj/flutter-firebase-gatsby-takeru[master]% npm -v
6.14.8
15:16:49 tkrimac3:~/proj/flutter-firebase-gatsby-takeru[master]% npm install -g gatsby-cli
npm WARN deprecated @hapi/joi@15.1.1: Switch to 'npm install joi'
npm WARN deprecated @hapi/address@2.1.4: Moved to 'npm install @sideway/address'
npm WARN deprecated @hapi/bourne@1.3.2: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated @hapi/hoek@8.5.1: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated @hapi/topo@3.1.6: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
/usr/local/bin/gatsby -> /usr/local/lib/node_modules/gatsby-cli/cli.js
> core-js@2.6.11 postinstall /usr/local/lib/node_modules/gatsby-cli/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"
Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
> https://opencollective.com/core-js
> https://www.patreon.com/zloirock
Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
> gatsby-telemetry@1.3.38 postinstall /usr/local/lib/node_modules/gatsby-cli/node_modules/gatsby-telemetry
> node src/postinstall.js || true
> gatsby-cli@2.12.111 postinstall /usr/local/lib/node_modules/gatsby-cli
> node scripts/postinstall.js
╔════════════════════════════════════════════════════════════════════════╗
║ ║
║ Gatsby collects anonymous usage analytics ║
║ to help improve Gatsby for all users. ║
║ ║
║ If you'd like to opt-out, you can use `gatsby telemetry --disable` ║
║ To learn more, checkout https://gatsby.dev/telemetry ║
║ ║
╚════════════════════════════════════════════════════════════════════════╝
Success!
Welcome to the Gatsby CLI! Please visit https://www.gatsbyjs.org/docs/gatsby-cli/ for more information.
npm WARN gatsby-interface@0.0.193 requires a peer of gatsby@^2.6.0 but none is installed. You must install peer dependencies yourself.
npm WARN gatsby-interface@0.0.193 requires a peer of react-dom@^16.8.1 but none is installed. You must install peer dependencies yourself.
npm WARN acorn-dynamic-import@4.0.0 requires a peer of acorn@^6.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN theme-ui@0.2.52 requires a peer of @mdx-js/react@^1.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN @reach/popover@0.10.3 requires a peer of react-dom@^16.8.0 but none is installed. You must install peer dependencies yourself.
npm WARN @reach/alert@0.10.3 requires a peer of react-dom@^16.8.0 but none is installed. You must install peer dependencies yourself.
npm WARN @reach/tooltip@0.10.3 requires a peer of react-dom@^16.8.0 but none is installed. You must install peer dependencies yourself.
npm WARN @reach/dialog@0.10.3 requires a peer of react-dom@^16.8.0 but none is installed. You must install peer dependencies yourself.
npm WARN @reach/menu-button@0.10.3 requires a peer of react-dom@^16.8.0 but none is installed. You must install peer dependencies yourself.
npm WARN @reach/tabs@0.10.3 requires a peer of react-dom@^16.8.0 but none is installed. You must install peer dependencies yourself.
npm WARN @reach/combobox@0.10.3 requires a peer of react-dom@^16.8.0 but none is installed. You must install peer dependencies yourself.
npm WARN @reach/utils@0.10.5 requires a peer of react-dom@^16.8.0 but none is installed. You must install peer dependencies yourself.
npm WARN @reach/visually-hidden@0.10.4 requires a peer of react-dom@^16.8.0 but none is installed. You must install peer dependencies yourself.
npm WARN @reach/portal@0.10.5 requires a peer of react-dom@^16.8.0 but none is installed. You must install peer dependencies yourself.
npm WARN @reach/auto-id@0.10.5 requires a peer of react-dom@^16.8.0 but none is installed. You must install peer dependencies yourself.
npm WARN @reach/descendants@0.10.5 requires a peer of react-dom@^16.8.0 but none is installed. You must install peer dependencies yourself.
npm WARN @reach/rect@0.10.5 requires a peer of react-dom@^16.8.0 but none is installed. You must install peer dependencies yourself.
+ gatsby-cli@2.12.111
added 862 packages from 625 contributors in 45.899s
╭────────────────────────────────────────────────────────────────╮
│ │
│ New minor version of npm available! 6.13.7 → 6.14.4 │
│ Changelog: https://github.com/npm/cli/releases/tag/v6.14.4 │
│ Run npm install -g npm to update! │
│ │
╰────────────────────────────────────────────────────────────────╯
15:18:36 tkrimac3:~/proj/flutter-firebase-gatsby-takeru[master]%
いきなりいろいろ言われてもわかんないですよ。 WARNたくさんあるけどなんだ?
blogをつくる
https://qiita.com/k-penguin-sato/items/7554e5e7e90aa10ae225 ちょうどいこれを見ながら・・・
gatsby new my-blog https://github.com/gatsbyjs/gatsby-starter-blo
cd my-blog/
gatsby develop
で、http://localhost:8000/ でた〰!
デプロイ
netlifyにデプロイもできた。
https://nervous-bartik-3220fe.netlify.app/
へぇ、人類の進化はすごいな。