diff options
Diffstat (limited to 'viewer/win_start_vueui.cmd')
-rw-r--r-- | viewer/win_start_vueui.cmd | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/viewer/win_start_vueui.cmd b/viewer/win_start_vueui.cmd index cee15e8..7825df3 100644 --- a/viewer/win_start_vueui.cmd +++ b/viewer/win_start_vueui.cmd | |||
@@ -1,6 +1,6 @@ | |||
1 | @echo off | 1 | @echo off |
2 | set NODE_VERSION=12.14.0 | 2 | set NODE_VERSION=12.14.0 |
3 | set VUECLI_VERSION=4.1.1 | 3 | set VUECLI_VERSION=4.2.2 |
4 | 4 | ||
5 | chcp 65001 | 5 | chcp 65001 |
6 | echo. | 6 | echo. |
@@ -18,6 +18,17 @@ if errorlevel 1 ( | |||
18 | cmd /c npm install -g @vue/cli@%VUECLI_VERSION% | 18 | cmd /c npm install -g @vue/cli@%VUECLI_VERSION% |
19 | ) | 19 | ) |
20 | echo. | 20 | echo. |
21 | npm view -g @vue/cli version | find /i "%VUECLI_VERSION%" | ||
22 | if errorlevel 1 ( | ||
23 | echo ====================================================================== | ||
24 | echo Warning: vue/cli doesn't match the requested version: %VUECLI_VERSION% | ||
25 | echo. | ||
26 | echo CTRL+C to quit and update, or press a key to ignore this warning... | ||
27 | echo ====================================================================== | ||
28 | echo. | ||
29 | pause | ||
30 | ) | ||
31 | echo. | ||
21 | echo === npm install === | 32 | echo === npm install === |
22 | cmd /c npm install | 33 | cmd /c npm install |
23 | echo. | 34 | echo. |