-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using gatsby-cli to install tutorial with Node 12+ (12.4.0) with npm 6.9 in nvm 0.34.0 on MacOS OSX fails #8
Comments
FYI reading about the issues with node 12 and dependencies that rely on old versions of fsevents here leads me to believe that if I delete package-lock.json And clear out the old node_modules, then the requirements should be updated; should I create a new package-lock.json and do a PR? |
Indeed, after performing the following:
I see in the new
And using `gatsby-cli`, I'm able to run `gatsby develop` and to view the page running on `localhost` port 8000.van-wboye01-mac:locomath wboyer$ npm install --global gatsby-cli
/Users/wboyer/.nvm/versions/node/v12.6.0/bin/gatsby -> /Users/wboyer/.nvm/versions/node/v12.6.0/lib/node_modules/gatsby-cli/lib/index.js
> [email protected] postinstall /Users/wboyer/.nvm/versions/node/v12.6.0/lib/node_modules/gatsby-cli/node_modules/core-js
> node scripts/postinstall || echo "ignore"
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 -)
> [email protected] postinstall /Users/wboyer/.nvm/versions/node/v12.6.0/lib/node_modules/gatsby-cli/node_modules/gatsby-telemetry
> node src/postinstall.js
+ [email protected]
added 313 packages from 178 contributors in 12.122s
van-wboye01-mac:locomath wboyer$ gatsby develop
success open and validate gatsby-configs - 0.028 s
success load plugins - 2.764 s
success onPreInit - 0.003 s
success initialize cache - 0.008 s
success copy gatsby files - 0.057 s
success onPreBootstrap - 0.008 s
success source and transform nodes - 0.172 s
success building schema - 0.264 s
success createPages - 0.042 s
warn Attempting to create page "/tags/", but page "/tags" already exists. This
success createPagesStatefully - 0.037 s
success onPreExtractQueries - 0.003 s
success update schema - 0.039 s
success extract queries from components - 0.326 s
success write out requires - 0.005 s
success write out redirect data - 0.007 s
warn The icon(static/logo/favicon.png) you provided to 'gatsby-plugin-manifest'
is not square.
The icons we generate will be square and for the best results we recommend you
success Build manifest and related icons - 0.208 s
success onPostBootstrap - 0.214 s
⠀
info bootstrap finished - 7.435 s
⠀
success run static queries - 0.012 s — 1/1 109.82 queries/second
(node:53189) DeprecationWarning: overlayWith(input, options) is deprecated, use
success run page queries - 2.658 s — 24/24 9.04 queries/second
DONE Compiled successfully in 3902ms 11:43:32 PM
⠀
You can now view gatsby-tutorial-starter in the browser.
⠀
http://localhost:8000/
⠀
View GraphiQL, an in-browser IDE, to explore your site's data and schema
⠀
http://localhost:8000/___graphql
⠀
Note that the development build is not optimized.
To create a production build, use npm run build
⠀
ℹ 「wdm」:
ℹ 「wdm」: Compiled successfully.
————————————————————————————————————————————————————————————————————————————————
24 pages gatsby-tutorial-starter |
@wbkboyer Thank you for taking the time to investigate and post your findings here. I will definitely update the dependencies. Glad you figured it out! |
Hi! I've been trying to hammer at getting this up and running using the command
gatsby new my-site https://github.com/justinformentin/gatsby-v2-tutorial-starter
But when I run the command, I get errors pointing to issues with `fsevents`.
I made sure that I had
brew install libffi
and that I addedexport PKG_CONFIG_PATH="${PKG_CONFIG_PATH}:/usr/local/opt/libffi/lib/pkgconfig"
to my.bash_profile
(as per this post. I also:npm config set python "/usr/local/bin/python2.7" -g
as per this post and this post--
sudo chown -R $(whoami) ~/.npm/
--
sudo chown -R $(whoami) ~/.npmrc
--
sudo chown -R $(whoami) $(npm config get prefix)/{lib/node_modules,bin,share}
--
sudo chown -R $(whoami) ~/.node-gyp
brew install vips
(as per these instructions) because of issues installingsharp
andfsevents
(as seen in the errors above).However, despite successfully
npm install sharp@latest fsevents@latest
, thepackage-lock.json
shows that the versions of these packages used by this project's dependencies are still the old ones that don't work withnode 12.4.0
.Is there something I'm missing here, or would it be possible to update the dependencies of this project? Thank you for your time in reading!
The text was updated successfully, but these errors were encountered: