问题描述
jshint : File C:\Users\Balarka\AppData\Roaming\npm\jshint.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.
At line:1 char:1
+ jshint app.js
+ ~~~~~~
+ CategoryInfo : SecurityError: (:) [],PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess
解决方法
这里引用了一个答案:https://stackoverflow.com/a/59244943/11518388
或者,您也可以编辑Visual Studio Code的属性(右键单击快捷方式,然后单击属性),并强制其始终以管理员身份运行。