Compile and install Node.js and pnpm (yarn and npm are included),
Node.js requires Python 3 but no more than Python 3.12... https://github.com/nodejs/node/blob/main/configure#L7
To circumvent this, you can directly call python3 ./configure.py
instead of ./configure
:
NODE_VERSION=16.16.0
curl --silent --fail --location --output /tmp/node.tar.gz "https://nodejs.org/dist/v${NODE_VERSION}/node-v$NODE_VERSION.tar.gz" \
&& tar xzf /tmp/node.tar.gz \
&& cd "node-v$NODE_VERSION" \
&& apk add --no-cache --virtual .build-deps \