[wp-trac] [WordPress Trac] #59663: Bump the minimum required version of Node.js to 20.x

WordPress Trac noreply at wordpress.org
Sat Dec 23 12:58:27 UTC 2023


#59663: Bump the minimum required version of Node.js to 20.x
------------------------------+-----------------------
 Reporter:  desrosj           |       Owner:  (none)
     Type:  task (blessed)    |      Status:  reopened
 Priority:  normal            |   Milestone:  6.5
Component:  Build/Test Tools  |     Version:
 Severity:  normal            |  Resolution:
 Keywords:  has-patch         |     Focuses:
------------------------------+-----------------------

Comment (by desrosj):

 @kraftbj hmm I’d have to do some testing.

 Ideally, when `20.11.2`, `20.12.0`, etc. is released, nvm will naturally
 install or update a contributors machine appropriately. I think if we
 change the file to `20.10`, only `20.10.z` releases will be installed and
 we’d have to commit an update with every release.

 My typical workflow is to run `nvm install`, so I’ve never your edge case.
 I recently also set up my machine to always check for an `.nvmrc` file
 when changing directories, executing `nvm install` if one is present to
 ensure the right version is being used.

 I’m not opposed to considering temporarily defining `20.10` to ease the
 transition. After a few more releases of 20.x, the likelihood of this goes
 down. I think it’s mostly a problem because 20.10 is the latest release.
 But maybe the better path is better documentation and education to use
 `nvm install` instead of `nvm use` since that would cover future scenarios
 like this as well.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/59663#comment:30>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list