use node.lts

This commit is contained in:
deffcolony
2024-11-10 20:55:00 +01:00
parent 33d22b273b
commit ad5193eb84
3 changed files with 4 additions and 4 deletions

View File

@@ -273,7 +273,7 @@ if %errorlevel% neq 0 (
echo %yellow_bg%[%time%]%reset% %yellow_fg_strong%[WARN] winget failed to install Git or is not installed.%reset%
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Downloading Git using powershell...
powershell -Command "(New-Object System.Net.WebClient).DownloadFile('https://github.com/git-for-windows/git/releases/download/v2.45.2.windows.1/Git-2.45.2-64-bit.exe', '%bin_dir%\git.exe')"
powershell -Command "(New-Object System.Net.WebClient).DownloadFile('https://github.com/git-for-windows/git/releases/download/v2.47.0.windows.2/Git-2.47.0.2-64-bit.exe', '%bin_dir%\git.exe')"
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Installing git...
start /wait %bin_dir%\git.exe /VERYSILENT /NORESTART
@@ -1423,7 +1423,7 @@ goto :update_manager_core_utilities
:update_nodejs
winget upgrade OpenJS.NodeJS
winget upgrade OpenJS.NodeJS.LTS
pause
goto :update_manager_core_utilities

View File

@@ -3,7 +3,7 @@
:install_nodejs
title STL [INSTALL NODEJS]
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Installing Node.js...
winget install -e --id OpenJS.NodeJS
winget install -e --id OpenJS.NodeJS.LTS
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% %green_fg_strong%Node.js is installed.%reset%
REM Prompt user to restart

View File

@@ -3,6 +3,6 @@
:uninstall_nodejs
title STL [UNINSTALL-NODEJS]
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Uninstalling Node.js...
winget uninstall --id OpenJS.NodeJS
winget uninstall --id OpenJS.NodeJS.LTS
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% %green_fg_strong%Node.js has been uninstalled successfully.%reset%
goto :app_uninstaller_core_utilities