builder/setup.sh

23 lines
707 B
Bash

#!/bin/bash
################################################################################
#2345678911234567892123456789312345678941234567895123456789612345678971234567898
################################################################################
cd /tmp
mkdir -p "$NVM_DIR"
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash
echo "export NVM_DIR=$NVM_DIR" >> /etc/profile
echo "source \$NVM_DIR/nvm.sh" >> /etc/profile
source /etc/profile
NCD="/usr/local/nvm/.cache/bin/node-v18.12.1-linux-arm64/"
mkdir -p "$NCD"
mv /tmp/node-v18.12.1-linux-arm64.tar.xz "$NCD"
nvm ls-remote
nvm install v18.12.1
nvm use v18.12.1
rm -rf "/usr/local/nvm/.cache"
npm install -g yarn