Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-9239

cordova windows platform commands fail on Mac

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 4.0.0
    • None
    • None
    • Mac OS X 10.10.3

    Description

      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)

      Attachments

        Activity

          People

            robpaveza Rob Paveza
            harrisonm Marlon Harrison
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: