-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSetup.cmd
32 lines (26 loc) · 1.34 KB
/
Setup.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
@echo off
rem Prog learning project - setup script for Windows consoles.
rem Can be run over and over if you need to. If you see it change when
rem you do a git pull, you should run it again to pull down any Node.js
rem NPM packages or perform other setups.
where npm
if ERRORLEVEL 1 echo ERROR: NPM not found. Did you install Node.js according to the instructions at https://github.com/6kidsgames/Prog ? && exit /b 1
echo.
echo ==========================================================================
echo Ensuring we have all the needed Node.js Package Manager packages.
echo ==========================================================================
echo.
echo ==========================================================================
echo Installing learning packages for Node.js
echo ijavascript - Lets us use JavaScript within Jupyter notebooks.
echo prompt-sync - Lets us get user input at the console
echo ==========================================================================
echo.
call npm install --save-dev ijavascript prompt-sync
if ERRORLEVEL 1 echo ERROR: npm install failed for leaning modules with errorlevel %ERRORLEVEL% && exit /b 1
call %~dp0Init.cmd
echo.
echo ==========================================================================
echo Complete!
echo ==========================================================================
echo.