mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 15:36:16 -04:00
Exit on install if node is not installed.
This commit is contained in:
parent
4b59a18f23
commit
3076ad9180
1 changed files with 4 additions and 0 deletions
|
@ -3,6 +3,10 @@
|
||||||
:: change directory to etherpad-lite root
|
:: change directory to etherpad-lite root
|
||||||
cd /D "%~dp0\.."
|
cd /D "%~dp0\.."
|
||||||
|
|
||||||
|
:: Is node installed?
|
||||||
|
cmd /C node -e "" || ( echo "Please install node.js ( http://nodejs.org )" && exit /B 1 )
|
||||||
|
|
||||||
|
echo _
|
||||||
echo Checking node version...
|
echo Checking node version...
|
||||||
set check_version="if(['6','8'].indexOf(process.version.split('.')[1].toString()) === -1) { console.log('You are running a wrong version of Node. Etherpad Lite requires v0.6.x or v0.8.x'); process.exit(1) }"
|
set check_version="if(['6','8'].indexOf(process.version.split('.')[1].toString()) === -1) { console.log('You are running a wrong version of Node. Etherpad Lite requires v0.6.x or v0.8.x'); process.exit(1) }"
|
||||||
cmd /C node -e %check_version% || exit /B 1
|
cmd /C node -e %check_version% || exit /B 1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue