sudo mkdir -p /opt/node/bin
chmod -R 777 /opt/node/
cd ~
git clone --depth 1 --branch v20.9.0 https://github.com/nodejs/node
cd node
sudo apt-get install build-essential python3-distutils git
sudo apt install clang-10
CC=clang-10 CXX=clang++-10 ./configure --prefix=/opt/node/
make -j4
make install
Created
April 14, 2024 21:47
-
-
Save ThomasG77/115ed71902cd42d62d329a3ad74613f5 to your computer and use it in GitHub Desktop.
Compile Node - quick recipe
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment