-
-
Save thinmy/b07ba0ee0d377295d0ed90fc307f2505 to your computer and use it in GitHub Desktop.
Install Node 8.10.0 in Ubuntu 16+
This file contains hidden or 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 | |
export NODE_VERSION=8.10.0 | |
export NODE_DOWNLOAD_URL=https://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION.tar.gz | |
wget "$NODE_DOWNLOAD_URL" -O node.tar.gz | |
tar -zxvf node.tar.gz | |
cd node-v$NODE_VERSION | |
./configure | |
make | |
sudo make install | |
sudo chown ${USER} -R /usr/local/lib/node_modules | |
sudo chown ${USER} -R /usr/local/bin | |
sudo chown ${USER} -R /usr/local/share | |
cd .. | |
npm u -g npm | |
npm i -g npm | |
rm -rf node-v$NODE_VERSION | |
rm node.tar.gz | |
node --version | |
npm --verion |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment