skip to Main Content

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


  1. npm install -g
    

    use this command for install npm globaly.

    Login or Signup to reply.
  2. 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
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search