Skip to content
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

[BUG] error Gatsby requires Node.js v8 or higher (you have v15.0.0-pre). #1270

Closed
jrgleason opened this issue May 9, 2020 · 3 comments
Closed
Labels
Bug thing that needs fixing

Comments

@jrgleason
Copy link

jrgleason commented May 9, 2020

What / Why

When I try to build NPM from source using a locally compiled version v15.0.0-pre, it complains about the version not being higher than 8.

When

  • Whenever I build from source

Where

  • npm/cli

How

Current Behavior

NPM Fails to build

Steps to Reproduce

  • n/a

Expected Behavior

  1. Clone the NPM repo
  2. Run `./configure'
  3. Run ./make

You get the error...

error Gatsby requires Node.js v8 or higher (you have v15.0.0-pre).
Upgrade Node to the latest stable release: https://gatsby.dev/upgrading-node-js
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! npm-cli-docs@0.1.0 build:static: `GATSBY_IS_STATIC=true gatsby build --prefix-paths "echo"`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the npm-cli-docs@0.1.0 build:static 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:
npm ERR!     /Users/jackiegleason/.npm/_logs/2020-05-09T16_42_57_587Z-debug.log
make: *** [htmldocs] Error 1

Workaround

Remove the check from .//docs/node_modules/gatsby/node_modules/gatsby-cli/lib/index.js:

@jrgleason jrgleason changed the title [BUG] <title> [BUG] error Gatsby requires Node.js v8 or higher (you have v15.0.0-pre). May 9, 2020
@jrgleason
Copy link
Author

Also opened gatsbyjs/gatsby#23945

@jrgleason
Copy link
Author

Looks like CMakeJS does not allow you to change it to a non url. I am working on some hack fixes and I will post more once I get it working

@darcyclarke darcyclarke added the Bug thing that needs fixing label Oct 30, 2020
@darcyclarke
Copy link
Contributor

npm v6 is no longer in active development; We will continue to push security releases to v6 at our team's discretion as-per our Support Policy.

If your bug is reproducible on v7, please re-file this issue using our new issue template.

If your issue was a feature request, please consider opening a new RRFC or RFC. If your issue was a question or other idea that was not CLI-specific, consider opening a discussion on our feedback repo

Closing: This is an automated message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug thing that needs fixing
Projects
None yet
Development

No branches or pull requests

2 participants