mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-12-23 21:18:07 +00:00
Install explicit npm version
This commit is contained in:
parent
b015e7031b
commit
10dafe3c4f
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user