Files
UnrealEngineUWP/Engine/Plugins/VirtualProduction/RemoteControlWebInterface/WebApp/Start.sh
aurel cordonnier a6e741e007 Merge from Release-Engine-Staging @ 17915896 to Release-Engine-Test
This represents UE4/Main @17911760, Release-5.0 @17915875 and Dev-PerfTest @17914035

[CL 17918595 by aurel cordonnier in ue5-release-engine-test branch]
2021-10-25 20:05:28 -04:00

29 lines
772 B
Bash
Executable File

#!/bin/sh
set -e
# First we check if nodejs is installed
if ! command -v node > /dev/null ; then
echo "ERROR: Couldn't find node.js installed..., Please install latest nodejs from https://nodejs.org/en/download/"
exit 1
fi
# Check if npm is installed
if ! command -v npm > /dev/null ; then
echo "ERROR: Couldn't find npm installed..., Please install npm"
exit 1
fi
# Let's check if it is a modern nodejs
VERSION=$(node -e "console.log( process.versions.node.split('.')[0] );")
echo "Found Node.js version ${VERSION}"
if [ ${VERSION} -lt 14 ] ; then
echo "ERROR: installed node.js version is too old (${VERSION}) :\( Please install latest nodejs from https://nodejs.org/en/download/"
exit 1
fi
FOLDER=$(dirname "$0")
node ${FOLDER}/Scripts/start.js "$@"