Latest nodejs (23.10.0) fails to install on arm Mac 12.
Brew install doesn't add to path automatically, so set
in the script after install.
Change-Id: Ibad6c362e5633cc656e9e580cfe4bd5ef4e5af2a
Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
(cherry picked from commit 61fab6d730)
Reviewed-by: Rami Potinkara <rami.potinkara@qt.io>
Reviewed-by: Toni Saario <toni.saario@qt.io>