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

NPM Scoped packages are not being proxied through artifactory

    Details

    • Type: Bug
    • Status: Will Not Implement
    • Priority: Critical
    • Resolution: Unresolved
    • Affects Version/s: 4.12.0
    • Fix Version/s: None
    • Component/s: Artifact Storage
    • Labels:
      None
    • Environment:

      Docker 1.11.2 on Red Hat Enterprise Linux Server release 7.2 (Maipo)

      Description

      NPM Scoped packages are not being proxied through artifactory
      I get an error trying:

      C:\windows\system32>npm view http://ota-portal.in.kadaster.nl/artifactory/api/npm/npm-remote/@angular%2fcore
      npm ERR! Windows_NT 6.1.7601
      npm ERR! argv "C:
      Program Files\\nodejs
      node.exe" "C:
      Program Files\\nodejs\\node_modules\\npm\\bin
      npm-cli.js" "view" "http://ota-portal.in.kadaster.nl/artifactory/api/npm/npm-remote/@angular%2fcore"
      npm ERR! node v4.3.1
      npm ERR! npm v2.14.12

      npm ERR! Invalid package.json
      npm ERR!
      npm ERR! If you need help, you may report this error at:
      npm ERR! <https://github.com/npm/npm/issues>

      npm ERR! Please include the following file with any support request:
      npm ERR! C:\windows\system32\npm-debug.log

      I found a closed issue with the same trouble we have. https://www.jfrog.com/jira/browse/RTFACT-10402

      But the resolution does not work within our configuration.
      We are running artifactory within a docker container.

      I tried the resolution from Dan Kamenov but there's no change.
      I still get the errors.

      2016-06-09 10:27:02,300 [http-nio-8081-exec-6947] [DEBUG] (o.a.w.s.AccessFilter:326) - 'null' Cached key has been found for request: '/api/npm/npm-group/@angular/core' with method: 'GET'
      2016-06-09 10:27:02,300 [http-nio-8081-exec-6947] [DEBUG] (o.a.w.s.AccessFilter:307) - Using cached anonymous authentication
      2016-06-09 10:27:02,300 [http-nio-8081-exec-6947] [DEBUG] (o.a.w.s.RepoFilter :96) - Entering request GET (10.0.25.126) /api/npm/npm-group/@angular/core.
      2016-06-09 10:27:02,301 [http-nio-8081-exec-6947] [DEBUG] (o.j.r.n.r.h.NpmLocalRepoHandler:83) - Handling version metadata request for package '@angular' and version 'core'
      2016-06-09 10:27:02,301 [http-nio-8081-exec-6947] [DEBUG] (o.a.s.d.u.JdbcHelper:253) - Executing SQL: 'SELECT count FROM nodes WHERE repo = 'clearwater-npm' AND node_path = '.npm/@angular' AND node_name = '@angular-core.json''.
      2016-06-09 10:27:02,302 [http-nio-8081-exec-6947] [DEBUG] (o.a.s.d.s.ArtifactoryTomcatDataSource:186) - Acquiring connection from pool
      2016-06-09 10:27:02,304 [http-nio-8081-exec-6947] [DEBUG] (o.a.s.d.u.JdbcHelper:111) - Query returned in 1.98 millis : 'SELECT count FROM nodes WHERE repo = 'clearwater-npm' AND node_path = '.npm/@angular' AND node_name = '@angular-core.json''
      2016-06-09 10:27:02,305 [http-nio-8081-exec-6947] [DEBUG] (o.a.a.m.ModuleInfoUtils:346) - Could not transform .npm/@angular/@angular-core.json to a valid module info.
      2016-06-09 10:27:02,305 [http-nio-8081-exec-6947] [DEBUG] (o.a.a.m.ModuleInfoUtils:346) - Could not transform .npm/@angular/@angular-core.json to a valid module info.
      2016-06-09 10:27:02,305 [http-nio-8081-exec-6947] [DEBUG] (o.a.a.m.ModuleInfoUtils:346) - Could not transform .npm/@angular/@angular-core.json to a valid module info.
      2016-06-09 10:27:02,306 [http-nio-8081-exec-6947] [DEBUG] (o.a.r.RealRepoBase :72) - npmjs-remote is not a valid module info - '.npm/@angular/@angular-core.json': not enforcing snapshot/release policy.
      2016-06-09 10:27:02,306 [http-nio-8081-exec-6947] [DEBUG] (o.a.a.m.ModuleInfoUtils:346) - Could not transform .npm/@angular/@angular-core.json to a valid module info.
      2016-06-09 10:27:02,307 [http-nio-8081-exec-6947] [DEBUG] (o.a.a.m.ModuleInfoUtils:346) - Could not transform .npm/@angular/@angular-core.json to a valid module info.
      2016-06-09 10:27:02,307 [http-nio-8081-exec-6947] [DEBUG] (o.a.r.RealRepoBase :72) - npmjs-remote-cache is not a valid module info - '.npm/@angular/@angular-core.json': not enforcing snapshot/release policy.
      2016-06-09 10:27:02,308 [http-nio-8081-exec-6947] [DEBUG] (o.a.w.s.RepoFilter :202) - Exiting request GET (10.0.25.126) /api/npm/npm-group/@angular/core

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              sookad SOO Kadaster
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: