1
0
forked from sneak/hacks

working on rpi borging

This commit is contained in:
2019-10-04 05:26:33 -07:00
parent f467f89c85
commit 45b3eb8ad5
15 changed files with 237 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