3 rem Ensure this Node.js and npm are first in the PATH
4 set "PATH=%APPDATA%\npm;%~dp0;%PATH%"
6 setlocal enabledelayedexpansion
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
15 echo Your environment has been set up for using Node.js !version! and npm.
17 echo Your environment has been set up for using Node.js !version!.
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%"