]> gerrit.simantics Code Review - simantics/district.git/blob - org.simantics.maps.server/node/node-v4.8.0-win-x64/nodevars.bat
Adding integrated tile server
[simantics/district.git] / org.simantics.maps.server / node / node-v4.8.0-win-x64 / nodevars.bat
1 @echo off
2
3 rem Ensure this Node.js and npm are first in the PATH
4 set "PATH=%APPDATA%\npm;%~dp0;%PATH%"
5
6 setlocal enabledelayedexpansion
7 pushd "%~dp0"
8
9 rem Figure out the Node.js version.
10 set print_version=.\node.exe -p -e "process.versions.node + ' (' + process.arch + ')'"
11 for /F "usebackq delims=" %%v in (`%print_version%`) do set version=%%v
12
13 rem Print message.
14 if exist npm.cmd (
15   echo Your environment has been set up for using Node.js !version! and npm.
16 ) else (
17   echo Your environment has been set up for using Node.js !version!.
18 )
19
20 popd
21 endlocal
22
23 rem If we're in the Node.js directory, change to the user's home dir.
24 if "%CD%\"=="%~dp0" cd /d "%HOMEDRIVE%%HOMEPATH%"