Skip to content
This repository was archived by the owner on Mar 8, 2020. It is now read-only.

Commit e964cf3

Browse files
authored
[0.19.x] fix prereqs script (#4503)
Signed-off-by: Dave Kelsey <d_kelsey@uk.ibm.com>
1 parent 2a746b1 commit e964cf3

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

packages/composer-website/jekylldocs/prereqs-ubuntu.sh

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
55
# You may obtain a copy of the License at
6-
#
6+
#
77
# http://www.apache.org/licenses/LICENSE-2.0
88
#
99
# Unless required by applicable law or agreed to in writing, software
@@ -24,7 +24,7 @@
2424
set -e
2525

2626
# Array of supported versions
27-
declare -a versions=('trusty' 'xenial' 'yakkety');
27+
declare -a versions=('trusty' 'xenial' 'yakkety', 'bionic');
2828

2929
# check the version and extract codename of ubuntu if release codename not provided by user
3030
if [ -z "$1" ]; then
@@ -67,15 +67,8 @@ export NVM_DIR="${HOME}/.nvm"
6767

6868
# Install node
6969
echo "# Installing nodeJS"
70-
nvm install --lts
71-
72-
# Configure nvm to use version 6.9.5
73-
nvm use --lts
74-
nvm alias default 'lts/*'
75-
76-
# Install the latest version of npm
77-
echo "# Installing npm"
78-
npm install npm@latest -g
70+
nvm install 8
71+
nvm use 8
7972

8073
# Ensure that CA certificates are installed
8174
sudo apt-get -y install apt-transport-https ca-certificates

0 commit comments

Comments
 (0)