aboutsummaryrefslogtreecommitdiff
path: root/scripts/dev_win_viewer_deps_install.cmd
blob: 9e2330df219793aaa483e73e0ba8d077278921ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
@echo off
set NODE_VERSION=12.22.2
cd ..\viewer\

chcp 65001
echo.
echo === nvm install ===
nvm install %NODE_VERSION%
nvm list | find /i "%NODE_VERSION% (Currently"
if errorlevel 1 (
  echo.
  echo === nvm use %NODE_VERSION% ===
  nvm use %NODE_VERSION%

  ping localhost -n 3 >NUL
  cmd /c npm install -g yarn
)
echo.
echo === yarn deps ===
cmd /c rmdir /s /q .\node_modules\
cmd /c yarn
echo.