parent
43d67cd01b
commit
7e63558346
@ -0,0 +1,16 @@ |
||||
#!/bin/sh |
||||
|
||||
set -e |
||||
|
||||
apt-get update |
||||
apt-get -qq -y --no-install-recommends install curl jq ca-certificates git g++ gcc make clang wget xz-utils python3 sudo |
||||
mkdir build_node |
||||
cd build_node/ || exit |
||||
wget https://nodejs.org/dist/v16.9.1/node-v16.9.1.tar.xz |
||||
tar xf node-v16.9.1.tar.xz |
||||
mv node-v16.9.1 node |
||||
cd node || exit |
||||
./configure |
||||
make -j4 |
||||
make install |
||||
node --version |
@ -0,0 +1,12 @@ |
||||
#!/bin/sh |
||||
|
||||
set -e |
||||
|
||||
apt-get update |
||||
apt-get -qq -y --no-install-recommends install curl wget ca-certificates sudo |
||||
|
||||
curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash - |
||||
|
||||
apt-get -qq -y install nodejs |
||||
|
||||
node --version |
Loading…
Reference in new issue