Files
  • main.sh
main.sh
1
2
3
4
5
6
7
8
9
10
11
12
echo "root = /home/runner/.local/lib/node_modules
binroot = /home/runner/.local/bin
manroot = /home/runner/.local/share/man" >> ~/.npmrc
mkdir ~/.local
wget https://github.com/joyent/node/archive/v0.10.29.tar.gz ~/
tar -xzvf ~/v0.10.29.tar.gz
cd ~/node-0.10.29
./configure --prefix=~/.local
make
make install
ln -s ~/.local/lib/node_modules ~/.node_modules
export PATH=$HOME/.local/bin:$PATH