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

WordPress Trac noreply at wordpress.org
Wed Jan 17 18:12:01 UTC 2024


#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 johnbillion):

 I just experienced the same issue as Brandon. Running `nvm use` switched
 to `20.9`, but `npm install` failed as it requires `>=20.10`.

 Log:

 {{{
 > nvm use
 Found '/Users/john/sites/wp/.nvmrc' with version <20>
 Now using node v20.9.0 (npm v10.1.0)

 > npm i
 npm ERR! code EBADENGINE
 npm ERR! engine Unsupported engine
 npm ERR! engine Not compatible with your version of node/npm:
 WordPress at 6.5.0
 npm ERR! notsup Not compatible with your version of node/npm:
 WordPress at 6.5.0
 npm ERR! notsup Required: {"node":">=20.10.0","npm":">=10.2.3"}
 npm ERR! notsup Actual:   {"npm":"10.1.0","node":"v20.9.0"}
 }}}

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


More information about the wp-trac mailing list