electron-builder : 无法加载文件,因为在此系统上禁止运行脚本

PS D:\code\eui_update_v10> electron-builder -w
electron-builder : 无法加载文件 C:\Users\cadcamzy\AppData\Roaming\npm\electron-builder.ps1,因为在此系统上禁止运行脚本
。有关详细信息,请参阅 https:/go.microsoft.com/fwlink/?LinkID=135170 中的 about_Execution_Policies。
所在位置 行:1 字符: 1

electron-builder : 无法加载文件,因为在此系统上禁止运行脚本
  • electron-builder -w
  • ~~~~
    • CategoryInfo : SecurityError: (:) [],PSSecurityException
    • FullyQualifiedErrorId : UnauthorizedAccess
      PS D:\code\eui_update_v10> set-executionpolicy remotesigned

按管理员身份运行PowerShell, 然后键入如下命令:

set-executionpolicy remotesigned

就可以正常运行脚本了。

原创文章,作者:cadcamzy,如若转载,请注明出处:https://www.8282.info/index.php/2022/06/21/electron-builder-about_execution_policies/;软件下载类文章均为转载,如有版权问题请联系本站,将第一时间删除!

发表评论

登录后才能评论