微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

node.js – Ionic给出提示:获取开发者许可证,安装签名证书

我正在使用Ionic构建一个 Windows应用程序,但在运行命令离子运行窗口后,我得到了以下日志:

Before installing this app,you need to do the following:


        - Acquire a developer license


        - Install the signing certificate


Administrator credentials are required to continue.  Please accept the UAC prompt and provide your administrator password if asked.


Press Enter to continue...:

然后停止后,在控制台中没有听到按键事件.

当我使用管理员权限运行cmd时.它给出以下错误

Error: Can not run this platform with administrative permissions. Must be run from a non-admin prompt.

解决方法

解决方案1:

运行命令

ionic run windows

在PowerShell中,它就像一个魅力(没有管理员权限).

解决方案2:

你也可以去

[project path]\platforms\windows\AppPackages\CordovaApp.Windows10_0.0.1.0_anycpu_debug_Test

然后右键单击* .ps1文件

Add-AppDevPackage.ps1

并单击“使用PowerShell运行”

希望这可以帮助!

PS:别忘了添加

<preference name="windows-target-version" value="10.0" />

到config.xml文件,如here所述.

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐