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

Windows 10: x64-build fails to run when running on an x86 version of Node.js

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • None
    • None
    • None

    Description

      When running an x64 version of a Cordova app, if the Node.js process is 32-bit, it will spawn 32-bit shells (like cmd.exe or PowerShell). In such a case, installing a 64-bit app with 64-bit dependencies will fail because of a bug in the VS-packaged installation script, which doesn't check for package architecture, but rather the system's processor architecture, which in a 32-bit shell is reported as x86.

      This is particularly important because Mobilespec uses .NET components. On Windows 10, these components must be .NET Native compiled, which means that they must be platform-specific compiled. As a result, when running with

      cordova run windows – --archs=x64 --appx=uap

      Mobilespec will build but fail to be run, reporting missing dependencies in the graph.

      Attachments

        Activity

          People

            robpaveza Rob Paveza
            robpaveza Rob Paveza
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: