Skip to content

Instantly share code, notes, and snippets.

@SlideeScherz
Created April 12, 2024 14:35
Show Gist options
  • Save SlideeScherz/4afa3e9649af28ba5ad6ba5eda2017d2 to your computer and use it in GitHub Desktop.
Save SlideeScherz/4afa3e9649af28ba5ad6ba5eda2017d2 to your computer and use it in GitHub Desktop.
Confirm vscode, nodejs and npm are correctly installed.
$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