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

Vladimir Kotikov closed CB-9239.
--------------------------------
    Resolution: Fixed

> cordova windows platform commands fail on Mac
> ---------------------------------------------
>
>                 Key: CB-9239
>                 URL: https://issues.apache.org/jira/browse/CB-9239
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CLI, Windows, Windows 8
>    Affects Versions: 4.0.0
>         Environment: Mac OS X 10.10.3
>            Reporter: Marlon Harrison
>            Assignee: Rob Paveza
>            Priority: Blocker
>
> I just setup a new cordova project. When I try to add windows to the project 
> I get an error. I have Parallels installed and the commands work just fine in 
> the Windows command prompt. I'm assuming its related to some 
> platform-specific commands but haven't dug much into it yet. 
> Mac Terminal (Mac OS X 10.10.3)
> 'cordova platform add windows' fails
> Error Returned:
> env: node\r: No such file or directory
> Error: 
> /Users/username/.cordova/lib/npm_cache/cordova-windows/4.0.0/package/bin/create:
>  Command failed with exit code 127
>     at ChildProcess.whenDone 
> (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:134:23)
>     at ChildProcess.emit (events.js:98:17)
>     at maybeClose (child_process.js:756:16)
>     at Process.ChildProcess._handle.onexit (child_process.js:823:5)
> 'corodva prepare' fails
> Error Returned:
> TypeError: Arguments to path.join must be strings
>     at path.js:360:15
>     at Array.filter (native)
>     at Object.exports.join (path.js:358:36)
>     at Object.getAvailableUAPVersions 
> (/Users/xxxx-username/projectFolder/Cordova/platforms/windows/cordova/lib/MSBuildTools.js:82:30)
>     at getUAPVersions 
> (/Users/xxxx-username/projectFolder/Cordova/platforms/windows/cordova/lib/prepare.js:614:41)
>     at Object.module.exports.applyPlatformConfig 
> (/Users/xxxx-username/projectFolder/Cordova/platforms/windows/cordova/lib/prepare.js:64:26)
>     at windows_parser.update_from_config 
> (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/metadata/windows_parser.js:76:25)
>     at windows_parser.update_project 
> (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/metadata/windows_parser.js:255:14)
>     at 
> /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/prepare.js:126:27
>     at Array.map (native)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to