Solution: Vue CLI error in VS Code – vue.ps1 cannot be loaded


You may get this error message in Visual Studio Code terminal after installing Vue CLI.

vue : File C:\Users\ravi\AppData\Roaming\npm\vue.ps1 cannot be loaded because running scripts is disabled on this system. For more information,
see about_Execution_Policies at https:/


Step 1: Navigate to the file location

Navigate to the file location mentioned in the error message. In my case it was:


Step 2: Rename File

Now rename vue.ps1 file to anything like vue.ps1_renamed.

This should solve the problem.

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *