[
https://issues.apache.org/jira/browse/CB-5183?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13813168#comment-13813168
]
Don Coleman commented on CB-5183:
---------------------------------
I think this is the same issue. "cordova platform add wp8" is failing for me.
The cli add script is trying to run bin/create instead of wp8/bin/create
Cordova 3.1.0-0.2.0
Windows 8.1
C:\Users\don>cordova create foo
Creating a new cordova project with name "HelloCordova" and id
"io.cordova.hellocordova" at location "C:\Users\don\foo"
C:\Users\don>cd foo
C:\Users\don\foo>cordova -d platform add wp8
Downloading cordova library for wp8...
Requesting
{"uri":"https://git-wip-us.apache.org/repos/asf?p=cordova-wp8.git;a=snapshot;h=3.1.0;sf=tgz"}...
Downloaded, unzipped and extracted 249399 byte response.
Download complete
Checking if platform "wp8" passes minimum requirements...
Checking wp8 requirements...
Running ""C:\Users\don\.cordova\lib\wp\cordova\3.1.0\wp8\bin\check_reqs""
(output to follow)
Creating wp8 project...
Running bin/create for platform "wp8" with command:
""C:\Users\don\.cordova\lib\wp\cordova\3.1.0\bin\create"
"C:\Users\don\foo\platforms\wp8" "io.cordova.hellocordova" "HelloCordova""
(output to follow)
Error: An error occured during creation of wp8 sub-project.
The system cannot find the path specified.
at C:\Users\don\AppData\Roaming\npm\node_modules\cordova\src\platform.js:246
:30
at ChildProcess.exithandler (child_process.js:641:7)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at maybeClose (child_process.js:735:16)
at Socket.<anonymous> (child_process.js:948:11)
at Socket.EventEmitter.emit (events.js:95:17)
at Pipe.close (net.js:466:12)
Manually adjusting the path adds the platform OK
"C:\Users\don\.cordova\lib\wp\cordova\3.1.0\wp8\bin\create"
"C:\Users\don\foo\platforms\wp8" "io.cordova.hellocordova" "HelloCordova"
> WP7/8 custom_path is not correctly resolved by CLI
> --------------------------------------------------
>
> Key: CB-5183
> URL: https://issues.apache.org/jira/browse/CB-5183
> Project: Apache Cordova
> Issue Type: Bug
> Components: CLI
> Reporter: Sergey Grebnov
> Assignee: Jesse MacFadyen
> Priority: Minor
>
> Steps to reproduce
> 1. Install latest cordova-cli from git repo
> 2. Create new project App using 'cordova create App' CLI command
> 3. Update app/.cordova/config.json to point to custom cordova-wp8 repo
> For example
> { "id":"org.apache.mobilespec", "name":"mobilespec", "lib": { "wp8": {
> "uri": "c:\\..\\cordova-wp8", "version": "3.1.0", "id":
> "cordova-wp8-master" } }}
> 4. Run 'cordova platform add wp8' commands
> Expected: command succeeded.
> Actually: command failed with the message below
> Error: Error while checking requirements:
> '"c:\..\cordova-wp8\bin\check_reqs"' is not recognized as an internal or
> external command,
> operable program or batch file.
--
This message was sent by Atlassian JIRA
(v6.1#6144)