When creating a Vue project through VsCode, it prompts to prohibit script running (applicable to similar errors)

Error message:

vue: Unable to load file C: \ Users \ Administrator \ AppData \ Roaming \ npm \ vue.ps1, because running scripts is prohibited on this system. For more information, please see https: /go.microsoft.com/fwlink/? LinkID = 135 

170 中的 about_Execution_Policies。

Position line: 1 Character: 1

+ view create blogvue

+ ~~~

    + CategoryInfo          : SecurityError: (:) [],PSSecurityException

    + FullyQualifiedErrorId : UnauthorizedAccess

 

After querying the information

Solution : Open the PowerShell administrator to run , enter set-executionpolicy remotesigned, and then select Y, the problem is solved. This is a default action , and should report errors of the same kind , all can be solved through this .

 

 

Guess you like

Origin www.cnblogs.com/oralig/p/12737382.html