Skip to:
Content

BuddyPress.org

Opened 18 months ago

Closed 4 months ago

#9253 closed enhancement (fixed)

Node 22 breaks

Reported by: sirlouen's profile SirLouen Owned by:
Milestone: 15.0.0 Priority: normal
Severity: normal Version: 14.2.1
Component: Build/Test Tools 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 18 months ago.
Patch to edit Node20+ references

Download all attachments as: .zip

Change History (3)

@SirLouen
18 months ago

Patch to edit Node20+ references

#1 @espellcaste
4 months ago

  • Milestone changed from Awaiting Review to 15.0.0
  • Type changed from defect (bug) to 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
4 months ago

  • Resolution set to fixed
  • Status changed from new to closed

Duplicate of #9321

Note: See TracTickets for help on using tickets.