How to Resolve Node Version Compatibility Issue in Datahub Web-React v0.12.0

Original Slack Thread

Hi,
We are using datahub to v0.12.0. Our build agents do not have Node v21.2.0 so Front-end build is failing for datahub Web-React. We tried downloading during build but still failing.
Do we have to use the latest node version 21.2.0?
If using previous node version is fine, then What is the previous compatible node version we can use for datahub v0.12.0 Web-React and will not face any dependency issues during run?

Below is the error
Process ‘command ‘/datadrive/Builds/Agent2/_work/1372/s/datahub-web-react/.gradle/nodejs/node-v21.2.0-linux-x64/bin/npm’’ finished with non-zero exit value 1

<@U02G4B6ADL6>, <@U03MF8MU5P0>

<@U03MF8MU5P0> might be able to speak to this!

The old node was EOL, you can use a system version using a gradle build property see -> https://github.com/datahub-project/datahub/blob/master/datahub-web-react/build.gradle#L12

specifically -PuseSystemNode=true (note that you must have a node installed already)