Last active
May 8, 2021 15:23
-
-
Save nekoprog/e306e8019ba4db65f257b7c0c7e1dbcb to your computer and use it in GitHub Desktop.
Install Python3 Node NPM and Yarn into Shared Web Hosting
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
#Prep | |
touch ~/.bashrc | |
echo 'export PATH=$HOME/.local/bin:$PATH' >> ~/.bashrc | |
ln -s ~/.bashrc -> ~/.bash_profile | |
ln -s ~/.bashrc -> ~/.profile | |
mkdir ~/.local | |
mkdir ~/.tmp | |
echo prefix = ~/.local >> ~/.npmrc | |
echo prefix = ~/.local >> ~/.yarnrc | |
. ~/.bashrc | |
. ~/.bash_profile | |
. ~/.profile | |
#Install Python3 | |
mkdir ~/.tmp/python | |
cd ~/.tmp/python | |
curl -o- -L https://www.python.org/ftp/python/3.9.5/Python-3.9.5.tgz | tar xz --strip-components=1 | |
./configure --prefix=$HOME/.local | |
make install | |
#Install latest Node | |
mkdir ~/.tmp/node | |
cd ~/.tmp/node | |
curl -o- -L http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
./configure --prefix=$HOME/.local | |
make install | |
#Install NPM | |
curl -o- -L http://npmjs.org/install.sh | bash | |
#Install Yarn | |
curl -o- -L https://yarnpkg.com/install.sh | bash | |
#Cleanup and ready to use | |
rm -rf ~/.tmp | |
. ~/.bashrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment