You are using PowerShell in your VS Code terminal, likely version 5.1. PowerShell 5.1's default execution policy does not allow you to execute script files, like the npm entry point script npm.ps1.
Try changing the execution policy to a more permissive one:
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser