I'm using Ionic to build a windows app but after running command ionic run windows I got following log:
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...:
Then after it stops and no keypress event is listened in the console.
When I run cmd with admin privilege. It gives following error:
Error: Can not run this platform with administrative permissions. Must be run from a non-admin prompt.
Run the command
ionic run windows
in PowerShell and it works like a charm (no admin rights).
You can also go to
[project path]\platforms\windows\AppPackages\CordovaApp.Windows10_0.0.1.0_anycpu_debug_Test
and right click on the *.ps1 file
Add-AppDevPackage.ps1
and click Run with PowerShell
Hope this helps!
PS: Don't forget to add
<preference name="windows-target-version" value="10.0" />
to the config.xml file, as documented here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With