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

Artifactory cannot process different NPM tarball links

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.7.1
    • Component/s: NPM
    • Labels:
      None

      Description

      Symptoms: Remote NPM repositories fail to serve packages, and the NPM client gets a 404 not found on working packages.

      Steps to reproduce:

      1. Create a remote NPM repository going to https://registry.npm.taobao.org
      2. Set NPM to use the Artifactory repository
      3. Attempt to install the "express" package:

      npm install express

      npm WARN enoent ENOENT: no such file or directory, open '/home/jfrog/development/package.json'

      npm WARN development No description

      npm WARN development No repository field.

      npm WARN development No README data

      npm WARN development No license field.

       ** 

      npm ERR! code E404

      npm ERR! 404 Not Found: encodeurl@~1.0.2

       ** 

      npm ERR! A complete log of this run can be found in:

      npm ERR!     /home/jfrog/.npm/_logs/2019-01-16T19_51_24_307Z-debug.log

      (base) jfrog@jfrog:~/development$ less /home/jfrog/.npm/_logs/2019-01-16T19_51_24_307Z-debug.log

       

      Comparing the registry metadata, it looks like the download URL does not match the registry.npmjs.org format:

      [registry.npm.taobao.org]

      "tarball":"http://registry.npm.taobao.org/express/download/express-5.0.0-alpha.7.tgz"

       

      http://registry.npmjs.org

      "tarball":"https://registry.npmjs.org+/express/-/express-5.0.0-alpha.1.tgz"+

       

      [Artifactory]

      "tarball" : "http://artifactory.com:8081/artifactory/api/npm/npm-ali-remote/express+/-/",+

       

      20190116184953|987|REQUEST|12.244.40.18|admin|GET|/api/npm/npm-ali-remote/express/-/|HTTP/1.1|404|0

       

        Attachments

          Activity

            People

            • Assignee:
              omriz Omri Ziv
              Reporter:
              patrickr Patrick Russell
            • Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: