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

vscode-vue-cli-error

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:/go.microsoft.com/fwlink/?LinkID=135170.

Solution

Step 1: Navigate to the file location

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

C:\Users\ravi\AppData\Roaming\npm\

Step 2: Rename File

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

Done!!
This should solve the problem.

Related Posts

Leave a Reply

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