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
This commit is contained in:
parent
1f1fa767e5
commit
7c5615617f
@ -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}"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user