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

NPM Installation loop with package-lock.json and cordova-plugin-device

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1.0, 7.0.0, 1.1.3, 1.1.1, 7.0.2, cordova@7.0.0, 7.0.1
    • cordova@7.1.0
    • cordova-plugin-device
    • None
    • Docker environment on bitrise.io & Windows 10 64-bit with nodejs 6.9.1 and NPM 5.0.4

    Description

      If this lines are in the package-lock.json I get a symlink loop on my linux docker environment.

          "cordova-plugin-device": {
            "version": "1.1.6",
            "resolved": "https://registry.npmjs.org/cordova-plugin-device/-/cordova-plugin-device-1.1.6.tgz",
            "integrity": "sha1-LSF2TK18m4AVI+TgmjDgJLJJM0s="
          },

      Here is the package.json:

      {
          "version": "0.0.1",
          "author": "Ionic Framework",
          "homepage": "http://ionicframework.com/",
          "private": true,
          "dependencies": {
              "cordova-plugin-device": "^1.1.6"
          },
          "devDependencies": {
              "@ionic/cli-plugin-cordova": "1.4.0",
              "@ionic/cli-plugin-ionic-angular": "1.3.1",
              "typescript": "2.3.4"
          },
          "cordova": {
              "plugins": {
                  "cordova-plugin-device": {}
              },
              "platforms": [
                  "android",
                  "ios"
              ]
          }
      }

      And this is the error.

      Error: npm: Command failed with exit code 216 Error output:
      npm ERR! path
      /bitrise/src/node_modules/cordova-plugin-device/package.json
      npm ERR! code ELOOP
      npm ERR! errno -40
      npm ERR! syscall open
      npm ERR! ELOOP: too many symbolic links encountered, open
      '/bitrise/src/node_modules/cordova-plugin-device/package.json'

      Don't know what the problem is with this package-lock.json entry.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Paedly Paedly
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: