mirror of
https://github.com/google/nomulus.git
synced 2025-08-03 00:12:11 +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
|
||||
# Install Java
|
||||
apt-get install openjdk-11-jdk-headless -y
|
||||
# Install nvm
|
||||
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
|
||||
export NVM_DIR="$HOME/.nvm"
|
||||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
|
||||
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
|
||||
# Install node
|
||||
nvm install node
|
||||
# Install npm
|
||||
nvm install-latest-npm
|
||||
# Install Python
|
||||
apt-get install python -y
|
||||
# Install Node
|
||||
curl -sL https://deb.nodesource.com/setup_current.x | bash -
|
||||
apt-get install -y nodejs
|
||||
# Install gcloud
|
||||
# Cribbed from https://cloud.google.com/sdk/docs/quickstart-debian-ubuntu
|
||||
apt-get install lsb-release -y
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue