You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Joshua Anderson (JIRA)" <ji...@apache.org> on 2014/02/28 05:19:22 UTC

[jira] [Updated] (CB-6129) [windows8] cordova cli crashed when building windows8 app

     [ https://issues.apache.org/jira/browse/CB-6129?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joshua Anderson updated CB-6129:
--------------------------------

    Description: 
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}

  was:
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: 


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)


> [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.1.5#6160)