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所述.

相关文章

这篇文章主要介绍“基于nodejs的ssh2怎么实现自动化部署”的...
本文小编为大家详细介绍“nodejs怎么实现目录不存在自动创建...
这篇“如何把nodejs数据传到前端”文章的知识点大部分人都不...
本文小编为大家详细介绍“nodejs如何实现定时删除文件”,内...
这篇文章主要讲解了“nodejs安装模块卡住不动怎么解决”,文...
今天小编给大家分享一下如何检测nodejs有没有安装成功的相关...