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

Can't fetch jshint from a virtual repository

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: High
    • Resolution: Unresolved
    • Affects Version/s: 4.7.3
    • Fix Version/s: None
    • Component/s: NPM
    • Labels:
      None
    • Environment:

      Confirmed on:
      Artifactory: v4.7.3
      Node: v5.9.1
      npm client: 3.8.7
      OS: Ubuntu and Mac

      Description

      I can fetch jshint from a remote repository (/api/npm/npm-remote/), but can not fetch it from a virtual repository (/api/npm/npm/) with "Error: unknown compression method".

      Output:

      $ npm i --verbose jshint
      npm info it worked if it ends with ok
      npm verb cli [ '/Users/teppei/.nodebrew/node/v5.9.1/bin/node',
      npm verb cli   '/Users/teppei/.nodebrew/current/bin/npm',
      npm verb cli   'i',
      npm verb cli   '--verbose',
      npm verb cli   'jshint' ]
      npm info using npm@3.8.7
      npm info using node@v5.9.1
      npm verb request uri https://xxx/artifactory/api/npm/npm/jshint
      npm verb request no auth needed
      npm info attempt registry request try #1 at 11:48:13
      npm verb request id e991971dae6cd5a6
      npm http request GET https://xxx/artifactory/api/npm/npm/jshint
      npm info retry will retry, error on last attempt: Error: unknown compression method
      npm info attempt registry request try #2 at 11:48:23
      npm http request GET https://xxx/artifactory/api/npm/npm/jshint
      npm info retry will retry, error on last attempt: Error: unknown compression method
      npm info attempt registry request try #3 at 11:49:23
      npm http request GET https://xxx/artifactory/api/npm/npm/jshint
      npm verb stack Error: unknown compression method
      npm verb stack     at Zlib._handle.onerror (zlib.js:363:17)
      npm verb cwd /Users/teppei/tmp/npm-test-1
      npm ERR! Darwin 15.4.0
      npm ERR! argv "/Users/teppei/.nodebrew/node/v5.9.1/bin/node" "/Users/teppei/.nodebrew/current/bin/npm" "i" "--verbose" "jshint"
      npm ERR! node v5.9.1
      npm ERR! npm  v3.8.7
      npm ERR! code Z_DATA_ERROR
      npm ERR! errno -3
      
      npm ERR! unknown compression method
      npm ERR! 
      npm ERR! If you need help, you may report this error at:
      npm ERR!     <https://github.com/npm/npm/issues>
      npm verb exit [ -3, true ]
      
      npm ERR! Please include the following file with any support request:
      npm ERR!     /Users/teppei/tmp/npm-test-1/npm-debug.log
      

      Other packages like eslint, grunt or gulp are OK.
      Also, curl is OK.

      $ curl --compressed https://xxx/artifactory/api/npm/npm/jshint
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            teppeis Teppei Sato
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: