Use PYTHON2.7 for npm

Change-Id: Ic69821bbae6a01bf6c68ca3e4f8c4b40ec5bf950
This commit is contained in:
Adrian Czarnecki 2019-01-03 15:47:57 +01:00
parent e25ec337c8
commit d033c1cfbe
1 changed files with 3 additions and 0 deletions

View File

@ -1274,6 +1274,9 @@ 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
cd "${MONASCA_BASE}"
mkdir grafana-build || true