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

The command 'cordova prepare' breaks a path to an installed package

VotersWatch issueWatchersLinkUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • cordova@7.0.0
    • 8.0.0
    • cordova-fetch
    • None
    • OS: macOS Sierra 10.12.6 /Windows 10 Pro 1703
      node: 8.2.1
      npm: 5.3.0
      cordova: 7.0.1

    Description

      I made an example where I reproduce the issue each time: https://github.com/erychagov/cordova-prepare-issue

      1. Clone the project
      2. Make npm i
      3. Make ls -l node_modules. Result (short version): local-package -> ../local-package
      4. Make cordova prepare android.

      Actual:
      1. Output after step 4:
      Discovered plugin "local-package" in config.xml. Adding it to the project
      Failed to restore plugin "local-package" from config.xml. You might need to try adding it again. Error: Failed to fetch plugin local-package@./local-package via registry.
      Probably this is either a connection problem, or plugin spec is incorrect.
      Check your connection and plugin name/version/URL.
      Failed to get absolute path to installed module

      2. Output after a command ls -l node_modules (short version):
      local-package -> local-package

      3. package.info is modified.
      before command:
      "local-package": "./local-package"
      After command:
      "local-package": "file:node_modules/local-package"

      Expected:
      1. Output is empty after step 4.
      2. Output after a command ls -l node_modules (short version):
      local-package -> ../local-package
      3. package.info is not modified.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            erychagov Eugene Rychagov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment