Install explicit npm version

This commit is contained in:
Taylor Helsper 2021-11-06 15:29:02 -05:00
parent b015e7031b
commit 10dafe3c4f
3 changed files with 3 additions and 2 deletions

View File

@ -199,7 +199,7 @@ if ! skip_base_upgrades ; then
fi
# Update NPM (Node Package Manager)
npm install -g npm@latest
npm install -g npm@$NODE_NPM_VERSION
# Install Docker
if [ ! -f /usr/bin/docker ]; then

View File

@ -130,6 +130,7 @@ WEBSSH2_VERSION_FILE=/mnt/hdd/mynode/settings/webssh2_version
WEBSSH2_LATEST_VERSION_FILE=/mnt/hdd/mynode/settings/webssh2_version_latest
NODE_JS_VERSION="14.x"
NODE_NPM_VERSION="^8.1.0"
# Check for override files
if [ -f /usr/share/mynode/mynode_app_versions_custom.sh ]; then

View File

@ -290,7 +290,7 @@ usermod -aG docker root
# Install node packages
npm install -g pug-cli browserify uglify-js babel-cli
npm install -g npm@latest
npm install -g npm@$NODE_NPM_VERSION
# Remove existing MOTD login info
rm -rf /etc/motd