From 7c5615617fd07170a588a4c6b89bfb3961b573d1 Mon Sep 17 00:00:00 2001 From: Adrian Czarnecki Date: Thu, 21 Nov 2019 16:28:27 +0100 Subject: [PATCH] Update nodejs and npm packages This updated allow to use python3 to build grafana Update nodejs from 8.10.0 to 10.17.0 Update npm from 3.5.4 to 6.11.3 Change-Id: I709d1e6134150f1648a8f409ce438544e15ce403 --- devstack/plugin.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/devstack/plugin.sh b/devstack/plugin.sh index 1e40dc7c4..4920b1ed0 100755 --- a/devstack/plugin.sh +++ b/devstack/plugin.sh @@ -1264,8 +1264,9 @@ function clean_monasca_agent { function install_nodejs { echo_summary "Install Node.js" + curl -sL https://deb.nodesource.com/setup_10.x | sudo bash - - apt_get install nodejs npm + apt_get install nodejs npm config set registry "http://registry.npmjs.org/"; \ npm config set proxy "${HTTP_PROXY}"; \ npm set strict-ssl false; @@ -1296,8 +1297,7 @@ function install_monasca_grafana { git_timed clone $GRAFANA_REPO $GRAFANA_DIR --branch $GRAFANA_BRANCH --depth 1 fi - # Is required to use python2.7 to build grafana because node-gyp support only python2 - npm config set python /usr/bin/python2.7 + npm config set python /usr/bin/python3 cd "${MONASCA_BASE}"