-
Notifications
You must be signed in to change notification settings - Fork 12
/
update_libraries.cmd
39 lines (39 loc) · 1.12 KB
/
update_libraries.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
echo off
echo Updating WebGME libraries:
date /t
echo %TIME%
where npm
where node
if %ERRORLEVEL% == 0 (
echo #### npm install ####
npm install
if %ERRORLEVEL% == 0 (
echo #### npm install webgme ####
npm install webgme
if %ERRORLEVEL% == 0 (
echo #### npm install webgme-domain-tools ####
npm install webgme-domain-tools
if %ERRORLEVEL% == 0 (
echo #### npm install webgme-cyphy ####
npm install webgme-cyphy
if %ERRORLEVEL% == 0 (
echo update_libraries complete!
) else (
echo ERROR: Failed to update libraries!
)
) else (
echo ERROR: npm install webgme-domain-tools failed!
pause
)
) else (
echo ERROR: npm install webgme failed!
pause
)
) else (
echo ERROR: npm install failed!
pause
)
) else (
echo ERROR: npm and/or node is not in path! Make sure to install node and select the npm option.
pause
)