Created
February 11, 2019 19:22
-
-
Save chriswoodle/ca99677f9918ae36d58c92c7f8dbed8a to your computer and use it in GitHub Desktop.
Dragonboard setup.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo apt update -y | |
sudo apt upgrade -y | |
sudo apt remove nodejs -y | |
sudo apt autoremove -y | |
sudo apt install gedit nano -y | |
# install NodeJs | |
cd ~ | |
wget https://nodejs.org/dist/v8.9.4/node-v8.9.4-linux-arm64.tar.gz | |
tar -xvf node-v8.9.4-linux-arm64.tar.gz | |
cd node-v8.9.4-linux-arm64 | |
sudo cp -R * /usr/local/ | |
node -v | |
npm -v | |
cd ~ | |
rm -rf node-v8.9.4-linux-arm64* | |
# Setup npm global install directory | |
mkdir ~/.npm-global | |
echo "export PATH=~/.npm-global/bin:\$PATH" >> ~/.bashrc | |
npm config set prefix '~/.npm-global' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment