instal latest npm with nodejs #3224

This commit is contained in:
openoms 2022-07-15 19:44:47 +01:00
parent f58953bbe9
commit 63b8e461b5
No known key found for this signature in database
GPG key ID: 5BFB77609B081B65

View file

@ -91,14 +91,6 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; then
fi
fi
npm7installed=$(npm -v 2>/dev/null | grep -c "7.")
if [ ${npm7installed} -eq 0 ]; then
# needed for RTL
# https://github.blog/2021-02-02-npm-7-is-now-generally-available/
echo "# Update npm to v7"
sudo npm install --global npm@7
fi
echo "Installed nodeJS $(node -v)"
exit 0
fi