visual-studionpm

Why am I getting this terminal error and how do I fix it?


I keep getting this error when trying to use npm on my VS Code terminal. Does anyone know why it keeps giving me this? Error

I tried uninstalling and re-installing the node and it says it is running the correct one with no problem, but when I type npm install, I get this error.


Solution

  • Run Set-ExecutionPolicy -Scope CurrentUser RemoteSigned or Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope CurrentUser in your terminal, and then run npm install again.