[ 
https://issues.apache.org/jira/browse/CB-6129?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13924952#comment-13924952
 ] 

Winston Fan commented on CB-6129:
---------------------------------

I encountered this bug on Codova Version 3.3.1-0.3.1 as well.

Before this crashes, when adding the win8 platform, it also crashed saying:

Checking windows8 requirements...
Creating windows8 project...
Error: This file does not seem to be a cordova config.xml file: 
F:\Workplace\Cordova3.3.1\platforms\windows8\config.xml
    at Object.config_parser 
(C:\Users\myuser\AppData\Roaming\npm\node_modules\cordova\src\config_parser.js:33:15)
    at Object.windows8_parser 
(C:\Users\myuser\AppData\Roaming\npm\node_modules\cordova\src\metadata\windows8_parser.js:46:19)
    at 
C:\Users\myuser\AppData\Roaming\npm\node_modules\cordova\src\prepare.js:50:23
    at Array.map (native)
    at Object.prepare 
(C:\Users\myuser\AppData\Roaming\npm\node_modules\cordova\src\prepare.js:48:35)
    at 
C:\Users\myuser\AppData\Roaming\npm\node_modules\cordova\src\platform.js:284:57
    at ChildProcess.exithandler (child_process.js:635:7)
    at ChildProcess.EventEmitter.emit (events.js:98:17)
    at maybeClose (child_process.js:735:16)
    at Socket.<anonymous> (child_process.js:948:11)

> [windows8] cordova cli crashed when building windows8 app
> ---------------------------------------------------------
>
>                 Key: CB-6129
>                 URL: https://issues.apache.org/jira/browse/CB-6129
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CLI, Windows 8
>    Affects Versions: 3.4.0
>         Environment: Windows 8.1 VS 2013
>            Reporter: Joshua Anderson
>            Assignee: Jesse MacFadyen
>
> When building a cordova project in windows 8.1 with platform windows8, I can 
> build from visual studio 2013 but when I try and run "cordova run windows8" 
> on the Developer Command Prompt for VS2013, I get the following error: 
> {code}
> Deploying to local machine ...
> Attempt to uninstall previous application version...
>         Directory : 
> C:\Users\ander_000\programming\cordova-tests-meep\platforms\
> windows8
> powershell ". .\\cordova\lib\WindowsStoreAppUtils.ps1; Uninstall-App 
> io.cordova.
> hellocordova
> . : File 
> C:\Users\ander_000\programming\cordova-tests-meep\platforms\windows8\c
> ordova\lib\WindowsStoreAppUtils.ps1 cannot be loaded because running scripts
> is disabled on this system. For more information, see about_Execution_Policies
> at http://go.microsoft.com/fwlink/?LinkID=135170.
> At line:1 char:3
> + . .\\cordova\lib\WindowsStoreAppUtils.ps1; Uninstall-App
> io.cordova.hellocordova
> +   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>     + CategoryInfo          : SecurityError: (:) [], PSSecurityException
>     + FullyQualifiedErrorId : UnauthorizedAccess
> Uninstall-App : The term 'Uninstall-App' is not recognized as the name of a
> cmdlet, function, script file, or operable program. Check the spelling of the
> name, or if a path was included, verify that the path is correct and try 
> again.
> At line:1 char:44
> + . .\\cordova\lib\WindowsStoreAppUtils.ps1; Uninstall-App
> io.cordova.hellocordova
> +                                            ~~~~~~~~~~~~~
>     + CategoryInfo          : ObjectNotFound: (Uninstall-App:String) [], Comma
>    ndNotFoundException
>     + FullyQualifiedErrorId : CommandNotFoundException
> Error: cmd: Command failed with exit code 2
>     at ChildProcess.whenDone 
> (C:\Users\ander_000\AppData\Roaming\npm\node_module
> s\cordova\src\superspawn.js:112:23)
>     at ChildProcess.EventEmitter.emit (events.js:98:17)
>     at maybeClose (child_process.js:743:16)
>     at Process.ChildProcess._handle.onexit (child_process.js:810:5)
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to