$nvmexe = $null $nodeexe = "node.exe" if ($null -eq $env:NVM_HOME) { Write-Output "NVM is not installed, or not installed correctly..." } else { Write-Output "NVM_HOME=$env:NVM_HOME" Write-Output "NVM_SYMLINK=$env:NVM_SYMLINK" Write-Output "PATH=$env:PATH" $nvmexe = "$env:NVM_HOME\nvm.exe" $nodeexe = "$env:NVM_SYMLINK\node.exe" Write-Output "NVM managed versions:" &$nvmexe list } Write-Output "Active Node.js Version:" &$nodeexe --version if ($LASTEXITCODE -ne 0) { Write-Output "Unable to locade node.exe in path to check version!" } if (Test-Path -Path '.\nvmrc') { $nvmrcVersion = Get-Content .nvmrc Write-Output "Desired Node version: $nvmrcVersion" } else { Write-Output "No .nvmrc found!" }