-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwin-dev-setup.ps1
More file actions
24 lines (18 loc) · 749 Bytes
/
win-dev-setup.ps1
File metadata and controls
24 lines (18 loc) · 749 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# PowerShell Script for Windows Development Environment Setup
# Run this script with administrative privileges
# Installing Chocolatey
Write-Host "Installing Chocolatey..."
Set-ExecutionPolicy Bypass -Scope Process -Force;
Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
# Ensure Chocolatey was installed correctly
if ($null -eq (Get-Command choco -ErrorAction SilentlyContinue)) {
Write-Host "Chocolatey failed to install. Exiting..."
exit
}
# Installing Node.js and npm via Chocolatey
Write-Host "Installing Node.js..."
choco install nodejs -y
# Installing Git (commonly needed)
Write-Host "Installing Git..."
choco install git -y
Write-Host "Setup completed successfully!"