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

Cordova fails to add Android/Windows platform to project when root folder contains "&"

    XMLWordPrintableJSON

Details

    Description

      Repro steps:

      mkdir “R&D”
      cordova create testapp
      cd testapp
      cordova platform add windows
      

      Expected:
      Platform added successfully

      Actual:
      The following error is thrown:

      D:\Projects\R&D\test>cordova platform add windows
      Adding windows project...
      Failed to create project due to Project directory already exists:
              D:\Projects\R
      The system cannot find the path specified.
      Error: C:\Users\toddmosc\.cordova\lib\npm_cache\cordova-windows\3.8.1\package\bin\create.bat: Command failed with exit code 1
          at ChildProcess.whenDone (C:\Users\toddmosc\AppData\Roaming\npm\node_modules
      \vs-tac\node_modules\cordova\5.0.0\node_modules\cordova\node_modules\cordova-lib\src\cordova\superspawn.js:131:23)
          at ChildProcess.emit (events.js:110:17)
          at maybeClose (child_process.js:1015:16)
          at Process.ChildProcess._handle.onexit (child_process.js:1087:5)
      

      Attachments

        Activity

          People

            vladimir.kotikov Vladimir Kotikov
            vladimir.kotikov Vladimir Kotikov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: