[buddypress-trac] [BuddyPress Trac] #9253: Node 22 breaks
buddypress-trac
noreply at wordpress.org
Fri Nov 1 03:07:47 UTC 2024
#9253: Node 22 breaks
------------------------------+-----------------------------
Reporter: SirLouen | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Build/Test Tools | Version: 14.2.1
Severity: normal | Keywords: has-patch
------------------------------+-----------------------------
Following this:
https://buddypress.trac.wordpress.org/ticket/9047
Suggesting that Node 20+ is the new recommended version, which is wrong.
I tried to run the dev environment with the latest version of Node
provided on the site, and I could not execute
{{{
npm install
}}}
Only to discover that was a node 22 version issue
The problem comes from an incompatibility with node-sass package.
So, currently the only working LTS version is 20 and the version 21 being
the max version node version working.
Given that at least for now, node-sass seems to be a requirement in
package.json, the simplest soultion I provide is updating both in the docs
(/docs/contributor/code/README.md, instead of "latest version", suggest
sticking to version 20) and in the package.json file.
More info here about the Node 22 issue here:
https://github.com/sass/node-sass/issues/3415
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/9253>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list