Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

    If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

    Npm login issues

    Scheduled Pinned Locked Moved Support
    npmproget
    4 Posts 2 Posters 88 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ? This user is from outside of this forum
      Guest
      last edited by

      Hi Proget,

      We're experiencing problems with npm login after upgrading to npm 5.5.0.

      npm adduser gives a 404 Not Found with npm 5.5.0 and works with npm 5.4.2

      error

      Product: ProGet
      Version: 4.8.4

      1 Reply Last reply Reply Quote 0
      • ? This user is from outside of this forum
        Guest
        last edited by

        I tried to upload an image showing the error, but it didn't seem to work. Here it is in text instead:

        $ npm --version
        5.5.0
        
        $ npm adduser --registry=http://myserver--scope=@myscope --allways-auth
        Username: kasper
        Password:
        Email: (this IS public) kasper@mydomain.com
        npm ERR! code E404
        npm ERR! 404 Not Found
        
        npm ERR! A complete log of this run can be found in:
        npm ERR!     C:\Users\kasper.CONFIGIT\AppData\Roaming\npm-cache\_logs\2017-11-15T06_02_50_396Z-debug.log
        
        $ npm install --global npm@5.4.2
        C:\Users\kasper.CONFIGIT\AppData\Roaming\npm\npm -> C:\Users\kasper.CONFIGIT\AppData\Roaming\npm\node_mo
        dules\npm\bin\npm-cli.js
        C:\Users\kasper.CONFIGIT\AppData\Roaming\npm\npx -> C:\Users\kasper.CONFIGIT\AppData\Roaming\npm\node_mo
        dules\npm\bin\npx-cli.js
        + npm@5.4.2
        added 2 packages, removed 52 packages and updated 29 packages in 17.05s
        
        $ npm adduser --registry=http://myserver --scope=@myscope --allways-auth
        Username: kasper
        Password:
        Email: (this IS public) kasper@mydomain.com
        Logged in as kasper to scope @mydomain on http://myserver.
        
        1 Reply Last reply Reply Quote 0
        • benB Offline
          ben inedo-engineer
          last edited by

          Hello Kasper,

          I can't find where I solved this before, but I think the solution was to add a trailing slash to the registry URL. That is, if your registry is at http://example.com/npm/example-npm-feed, you would need to specify the parameter for npm 5.5 as --registry=http://example.com/npm/example-npm-feed/

          1 Reply Last reply Reply Quote 0
          • ? This user is from outside of this forum
            Guest
            last edited by

            Thanks Ben that did the trick :-)

            1 Reply Last reply Reply Quote 0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • 1 / 1
            • First post
              Last post
            Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation