Created
April 12, 2024 14:35
-
-
Save SlideeScherz/4afa3e9649af28ba5ad6ba5eda2017d2 to your computer and use it in GitHub Desktop.
Confirm vscode, nodejs and npm are correctly installed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$nodeVersion = node -v | |
Write-Host "Node.js Version: $nodeVersion" | |
if ($nodeVersion -eq $null) { | |
Write-Host "Node.js is not installed." | |
exit 1 | |
} | |
$npmVersion = npm -v | |
Write-Host "npm Version: $npmVersion" | |
if ($npmVersion -eq $null) { | |
Write-Host "npm is not installed." | |
exit 1 | |
} | |
$vsCodeVersion = code -v | |
Write-Host "Visual Studio Code Version: $vsCodeVersion" | |
if ($vsCodeVersion -eq $null) { | |
Write-Host "Visual Studio Code is not installed." | |
exit 1 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment