Skip to content

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

@jrgleason

Description

@jrgleason

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bugthing that needs fixing

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions