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

cordova platform add error with cordova-common@1.5.0

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • cordova-common
    • None
    • cordova-common@1.5.0

    Description

      This occurs when adding the cordova-ios platform, that has cordova-common@1.5.0

      Shazron-rMBP:u shaz$ cordova platform add ~/Apache/cordova-ios --verbose
      Warning: using prerelease version 6.4.0-nightly.2016.10.11.4759c467 (cordova-lib@6.4.0-nightly.2016.10.11.4ca3b4ca)
      No scripts found for hook "before_platform_add".
      Warning: using prerelease platform ios@4.3.0-dev.
      Use 'cordova platform add ios@latest' to add the latest published version instead.
      Adding ios project...
      PlatformApi successfully found for platform ios
      Creating Cordova project for the iOS platform:
      	Path: platforms/ios
      	Package: com.u.name
      	Name: u
      Copying iOS template project to /Users/shaz/Desktop/u/platforms/ios
      iOS project created with cordova-ios@4.3.0-dev
      Checking for any plugins added to the project that have not been installed in ios platform
      No differences found between plugins added to project and installed in ios platform. Continuing...
      Generating platform-specific config.xml from defaults for iOS at /Users/shaz/Desktop/u/platforms/ios/u/config.xml
      Merging project's config.xml into platform-specific iOS config.xml
      Merging and updating files from [www, platforms/ios/platform_www] to platforms/ios/www
      Error: ENOENT: no such file or directory, stat '/Users/shaz/Desktop/u/Users/shaz/Desktop/u/www'
          at Error (native)
          at Object.fs.statSync (fs.js:987:18)
          at mapDirectory (/Users/shaz/Desktop/u/platforms/ios/cordova/node_modules/cordova-common/src/FileUpdater.js:331:52)
          at /Users/shaz/Desktop/u/platforms/ios/cordova/node_modules/cordova-common/src/FileUpdater.js:295:20
          at Array.map (native)
          at Object.mergeAndUpdateDir (/Users/shaz/Desktop/u/platforms/ios/cordova/node_modules/cordova-common/src/FileUpdater.js:290:12)
          at updateWww (/Users/shaz/Desktop/u/platforms/ios/cordova/lib/prepare.js:153:17)
          at Api.module.exports.prepare (/Users/shaz/Desktop/u/platforms/ios/cordova/lib/prepare.js:48:19)
          at Api.prepare (/Users/shaz/Desktop/u/platforms/ios/cordova/Api.js:188:45)
          at /Users/shaz/.nvm/v6.4.0/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/prepare.js:105:32
      

      Attachments

        Issue Links

          Activity

            People

              shazron Shazron Abdullah
              shazron Shazron Abdullah
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: