[wp-trac] [WordPress Trac] #54502: Pin NodeJS 14.x in the `.nvmrc` file

WordPress Trac noreply at wordpress.org
Wed Nov 24 13:50:21 UTC 2021


#54502: Pin NodeJS 14.x in the `.nvmrc` file
------------------------------+--------------------
 Reporter:  desrosj           |      Owner:  (none)
     Type:  task (blessed)    |     Status:  new
 Priority:  normal            |  Milestone:  5.9
Component:  Build/Test Tools  |    Version:
 Severity:  normal            |   Keywords:
  Focuses:                    |
------------------------------+--------------------
 NodeJS 16.x is now [https://nodejs.org/en/about/releases/ considered the
 latest LTS version as of 2021-10-26]. If a contributor runs `nvm use` or
 `nvm install`, version 16.x will be downloaded and installed.

 While it appears that `npm run build` and other scripts still work as
 expected, NPM version 7 introduces a new format for `package-lock.json`
 files. Contributors will notice unintentional changes to that file. See
 #52951 for updating the lock file format.

 Since Gutenberg now enforces version `14` (see
 [https://github.com/WordPress/gutenberg/pull/36744 GB-36744]), I think it
 makes sense to change Core's version as well, even if temporarily, until
 compatibility with NodeJS 16 for both Gutenberg and Core can be confirmed,
 and the `package-lock.json` for both repositories can be upgraded to `v2`
 format at the same time.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/54502>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list