Skip to content

Commit

Permalink
Added non-apt install of nodejs 12.x
Browse files Browse the repository at this point in the history
  • Loading branch information
mtesauro committed Feb 28, 2020
1 parent 572a1b0 commit d8da706
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ubuntu.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,22 @@ func ubuntuInitOSInst(id string, b *osCmds) {
fmt.Sprintf("curl -sS %s | apt-key add -", YarnGPG),
fmt.Sprintf("echo -n %s > /etc/apt/sources.list.d/yarn.list", YarnRepo),
"DEBIAN_FRONTEND=noninteractive apt-get update",
"DEBIAN_FRONTEND=noninteractive apt-get install -y apt-transport-https libjpeg-dev gcc libssl-dev python3-dev python3-pip python3-virtualenv nodejs yarn build-essential expect",
"curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash - &&",
"DEBIAN_FRONTEND=noninteractive apt-get install -y apt-transport-https libjpeg-dev gcc libssl-dev python3-dev python3-pip python3-virtualenv yarn build-essential expect",
}
b.errmsg = []string{
"Unable to obtain the gpg key for Yarn",
"Unable to add yard repo as an apt source",
"Unable to update apt database",
"Unable to install nodejs 12.x",
"Installing OS packages with apt failed",
}
b.hard = []bool{
true,
true,
true,
true,
true,
}
// Currently, only Ubuntu 18.04 is supported
}
Expand Down

0 comments on commit d8da706

Please sign in to comment.