mirror of
https://github.com/google/nomulus.git
synced 2025-08-16 06:24:07 +02:00
Use nodesource to install node (#742)
The node installed by nvm gives errors when running "npm install". Also installs Python as it is need. Presumbly the system provided npm version has python as a dependency so it was installed when npm was installed.
This commit is contained in:
parent
915405b735
commit
95f4ae0e3a
1 changed files with 5 additions and 9 deletions
|
@ -21,15 +21,11 @@ apt-get install apt-utils gnupg -y
|
||||||
apt-get upgrade -y
|
apt-get upgrade -y
|
||||||
# Install Java
|
# Install Java
|
||||||
apt-get install openjdk-11-jdk-headless -y
|
apt-get install openjdk-11-jdk-headless -y
|
||||||
# Install nvm
|
# Install Python
|
||||||
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
|
apt-get install python -y
|
||||||
export NVM_DIR="$HOME/.nvm"
|
# Install Node
|
||||||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
|
curl -sL https://deb.nodesource.com/setup_current.x | bash -
|
||||||
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
|
apt-get install -y nodejs
|
||||||
# Install node
|
|
||||||
nvm install node
|
|
||||||
# Install npm
|
|
||||||
nvm install-latest-npm
|
|
||||||
# Install gcloud
|
# Install gcloud
|
||||||
# Cribbed from https://cloud.google.com/sdk/docs/quickstart-debian-ubuntu
|
# Cribbed from https://cloud.google.com/sdk/docs/quickstart-debian-ubuntu
|
||||||
apt-get install lsb-release -y
|
apt-get install lsb-release -y
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue