Install npm.

This commit is contained in:
Lauri Ojansivu 2020-11-12 16:45:58 +02:00
parent 8250cbcf6e
commit 345e2357c8

View file

@ -22,11 +22,11 @@ do
if [[ "$OSTYPE" == "linux-gnu" ]]; then if [[ "$OSTYPE" == "linux-gnu" ]]; then
echo "Linux"; echo "Linux";
# Debian, Ubuntu, Mint # Debian, Ubuntu, Mint
sudo apt-get install -y build-essential gcc g++ make git curl wget sudo apt-get install -y build-essential gcc g++ make git curl wget npm
# npm nodejs # npm nodejs
#sudo npm -g install npm #sudo npm -g install npm
curl -0 -L https://npmjs.org/install.sh | sudo sh #curl -0 -L https://npmjs.org/install.sh | sudo sh
sudo chown -R $(id -u):$(id -g) $HOME/.npm #sudo chown -R $(id -u):$(id -g) $HOME/.npm
sudo npm -g install n sudo npm -g install n
sudo n 12.19.0 sudo n 12.19.0
#curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash - #curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -