I am getting the following error after using npm in terminal.
It runs in windows command line, but not in terminal. Node.js is also installed. Its version is also checked with the following command
The only problem I have is with VS Code terminal
npm -v
enter image description here
2
Answers
use this command for install npm globaly.
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: