1
0
forked from sneak/hacks

rename dir

This commit is contained in:
2019-10-04 05:27:54 -07:00
parent 1675072561
commit 7ee2448934
16 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
export DEBIAN_FRONTEND=noninteractive
apt update
apt install -y git
export HOME=/root
git clone https://github.com/creationix/nvm.git /root/.nvm
cat >> /root/.bashrc <<'EOF'
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
EOF
source /root/.bashrc
nvm install 10
nvm use 10
npm install -g npm@latest
npm install -g yarn