Create block: Add Node and npm version check #20142
Labels
[Status] In Progress
Tracking issues with work in progress
[Tool] Create Block
/packages/create-block
[Type] Bug
An existing feature does not function as intended
Related comment #19773 (comment):
Node 10.0.0+ is required, see:
https://github.com/WordPress/gutenberg/tree/master/packages/create-block#quick-start
We should add version checking in the script. Promises API for
fs
was added in Node 10.x.Node 8.x is no longer maintained. See https://github.com/nodejs/Release#release-schedule.
The same applies to older versions of
npm
. Fornpm init @wordpress/block
we even should increase the required version ofnpm
to6.9.0
because@wordpress/scripts
requires it and it won't install properly for ESNext template (reported by @artpi in another place).The text was updated successfully, but these errors were encountered: