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

Cordova NPM package does not install when Node >= 0.12.x

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 4.0.0
    • Fix Version/s: None
    • Component/s: cordova-js
    • Labels:
      None
    • Environment:

      Windows7 x64 with NodeJS 0.12.6

      Description

      Hi

      I am trying to install cordova in version 5.1.1 (also tried some previous versions) using node 0.12.6:

      npm cache clean dep-graph
      npm install -g cordova@5.1.1

      Unfortunately, cordova-js depends on an older version of node (~0.10.x) which seems the reason for cordova not being installable:

      >npm install -g cordova@5.1.1
      npm WARN engine cordova-js@4.0.0: wanted: {"node":"~0.10.x"} (current: {"node":"0.12.6","npm":"2.11.2"})
      npm WARN engine npm@1.3.4: wanted: {"node":">=0.6","npm":"1"} (current: {"node":"0.12.6","npm":"2.11.2"})
      npm WARN engine xmlbuilder@2.2.1: wanted: {"node":"0.8.x || 0.10.x"} (current: {"node":"0.12.6","npm":"2.11.2"})
      npm WARN installMany normalize-package-data was bundled with npm@1.3.4, but bundled package wasn't found in unpacked tree
      C:\Users\robert\AppData\Roaming\npm\cordova -> C:\Users\robert\AppData\Roaming\npm\node_modules\cordova\bin\cordova
      cordova@5.1.1 C:\Users\robert\AppData\Roaming\npm\node_modules\cordova
      ├── underscore@1.7.0
      ├── q@1.0.1
      ├── nopt@3.0.1 (abbrev@1.0.7)
      └── cordova-lib@5.1.1 (valid-identifier@0.0.1, osenv@0.1.0, properties-parser@0.2.3, bplist-parser@0.0.6, mime@1.2.11, unorm@1.3.3, semver@2.1.0, rc@0.5.2, shelljs@0.3.0, dep-graph@1.1.0, through2@0.6.3, npmconf@0.1.16, xcode@0.6.7, d8@0.4.4, init-package-json@1.7.0, elementtree@0.1.6, request@2.47.0, glob@4.0.6, cordova-registry-mapper@1.1.8, tar@1.0.2, cordova-app-hello-world@3.9.0, cordova-js@4.0.0, plist@1.1.0, npm@1.3.4)
      

      Thanks in advance.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vladimir.kotikov Vladimir Kotikov
                Reporter:
                noonien Robert
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: