Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-7665

add support for npm docs command

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.10, 2.11
    • Fix Version/s: 2.11.3
    • Component/s: NPM
    • Labels:
      None

      Description

      npm docs command tries to get the URL of documentation for a package

      The request hits a URL with <package>/latest in the path.

      The response that gets returned looks like this:

      > npm docs async
      npm ERR! registry error parsing json
      npm ERR! Darwin 14.0.0
      npm ERR! argv "node" "/usr/local/bin/npm" "docs" "async"
      npm ERR! node v0.10.31
      npm ERR! npm v2.1.2

      npm ERR! Unexpected token <
      npm ERR! <html>
      npm ERR! <head>
      npm ERR! <title>404 - Request is serviced by NPM metadata service, remote access not needed from DefaultNpmProxyRepository(id=npm)</title>
      npm ERR! <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
      npm ERR!
      npm ERR! <link rel="icon" type="image/png" href="http://localhost:8081/nexus/favicon.png">
      npm ERR! <!--[if IE]>
      npm ERR! <link rel="SHORTCUT ICON" href="http://localhost:8081/nexus/favicon.ico"/>
      npm ERR! <![endif]-->
      npm ERR!
      npm ERR! <link rel="stylesheet" href="http://localhost:8081/nexus/static/css/Sonatype-content.css?2.11.0-SNAPSHOT" type="text/css" media="screen" title="no title" charset="utf-8">
      npm ERR! </head>
      npm ERR! <body>
      npm ERR! <h1>404 - Request is serviced by NPM metadata service, remote access not needed from DefaultNpmProxyRepository(id=npm)</h1>
      npm ERR! <p>Request is serviced by NPM metadata service, remote access not needed from DefaultNpmProxyRepository(id=npm)</p>
      npm ERR! </body>
      npm ERR! </html>
      npm ERR!
      npm ERR!
      npm ERR! If you need help, you may report this error at:
      npm ERR! <http://github.com/npm/npm/issues>

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            plynch Peter Lynch
            Last Updated By:
            Peter Lynch Peter Lynch
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response:

                tigCommentSecurity.panel-title