Skip to:
Content

BuddyPress.org

Opened 21 months ago

Closed 7 months ago

#9253 closed enhancement (fixed)

Node 22 breaks

Reported by: SirLouen Owned by:
Priority: normal Milestone: 15.0.0
Component: Build/Test Tools Version: 14.2.1
Severity: normal Keywords: has-patch
Cc:

Description

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

Attachments (1)

node22-issues.patch (2.9 KB ) - added by SirLouen 21 months ago.
Patch to edit Node20+ references

Download all attachments as: .zip

Change History (3)

@SirLouen
21 months ago

Patch to edit Node20+ references

#1 @espellcaste
7 months ago

  • Milestone Awaiting Review15.0.0
  • Type defect (bug)enhancement

My guess you have a more recent version of Python installed. But you are sort of right. I do can use it if I have a old version of Python (3.0).

But I'll adjust this in the next version.

#2 @espellcaste
7 months ago

  • Resolutionfixed
  • Status newclosed

Duplicate of #9321

Note: See TracTickets for help on using tickets.