Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-22657

NPM's package.json has an extra slash in the tarball url

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Resolution: Done
    • Affects Version/s: 7.6.1
    • Fix Version/s: None
    • Component/s: Indexer, NPM
    • Labels:
      None

      Description

      Problem description:

      When uploading an npm package to a local npm repository the pacakge.json that is generated contains an extra slash in the tarball URL.

       

      What is the expected behavior?**

      **The package.json's tarball's URL should not contain an extra slash (i.e. before the repository name, npm-local).

      Steps to reproduce: ** 

       

      1. Have an npm project. (I used the one from https://github.com/jfrog/project-examples as an example for this issue.)
      2. Have a build publish it to an npm local repository
      3. Navigate to the local repository and view its package.json
      4. Observe the extra slash in the tarball URL

      Possible workaround:**

      Manually going into every package.json and editing it.

      Was that reproduced on GCP machine/mill? yes**

        Attachments

          Issue Links

            Activity

                People

                Assignee:
                Unassigned
                Reporter:
                derekp Derek Pang
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: