get node install working in windows

This commit is contained in:
AJ ONeal
2020-04-27 19:15:18 +00:00
parent 92f1fa8f89
commit 90be397b83
4 changed files with 78 additions and 8 deletions
+19
View File
@@ -0,0 +1,19 @@
pushd "%userprofile%" || goto :error
IF NOT EXIST .local (
mkdir .local || goto :error
)
IF NOT EXIST .local\bin (
mkdir .local\bin || goto :error
)
pushd .local\bin || goto :error
rem TODO %PROCESSOR_ARCH%
powershell $ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest "https://rootprojects.org/pathman/dist/windows/amd64/pathman.exe" -OutFile pathman.exe || goto :error
popd || goto :error
popd
goto :EOF
:error
echo Failed with error #%errorlevel%.
exit /b %errorlevel%