我试图用js电子将网站转换成桌面应用程序,我在构建exe应用程序时发现了这个问题:
electron-builder : File C:\Users\firas lweti\AppData\Roaming\npm\electron-builder.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
+ electron-builder --win
+ ~~~~~~~~~~~~~~~~
+ CategoryInfo : SecurityError: (:) [], PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess

我需要将我的网站转换成桌面应用程序。
发布于 2022-10-29 16:57:51
这是一个拒绝脚本执行的powershell配置。您需要将其设置为允许它打开一个终端并键入:
集-执行策略RemoteSigned
它将要求确认,选择选项A来确认

https://stackoverflow.com/questions/74239583
复制相似问题