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!

    Error publishing package with yarn

    Scheduled Pinned Locked Moved Support
    npmpublishingfeedsproget
    2 Posts 2 Posters 93 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

      Hello,

      when publishing a package with yarn into an npm feed the following error is displayed. Maybe you have some advise how to fix this. It seems that the initial login works but the publishing itself after that login does not work. See the following yarn publish output.

      yarn publish --verbose --registry https://progetserver/npm/npmfeed
      yarn publish v1.5.1
      [1/4] Bumping version...
      info Current version: 1.0.1
      question New version: 1.0.2
      info New version: 1.0.2
      [2/4] Logging in...
      info npm username: f.bar
      info npm email: f.bar
      question npm password:
      verbose 18.55 Performing "PUT" request to "https://progetserver/npm/npmfeed/-/user/org.couchdb.user:f.bar".
      verbose 18.699 Request "https://progetserver/npm/npmfeed/-/user/org.couchdb.user:f.bar" finished with status code 201.
      success Logged in.
      [3/4] Publishing...
      verbose 18.727 Performing "PUT" request to "https://progetserver/npm/npmfeed/package-name".
      verbose 18.74 Request "https://progetserver/npm/npmfeed/package-name" finished with status code 401.
      verbose 18.741 Error: Couldn't publish package.
          at new MessageError (C:\Program Files (x86)\Yarn\lib\cli.js:186:110)
          at C:\Program Files (x86)\Yarn\lib\cli.js:87071:13
          at Generator.next (<anonymous>)
          at step (C:\Program Files (x86)\Yarn\lib\cli.js:98:30)
          at C:\Program Files (x86)\Yarn\lib\cli.js:109:13
          at <anonymous>
          at process._tickCallback (internal/process/next_tick.js:188:7)
      error An unexpected error occurred: "Couldn't publish package.".
      

      Product: ProGet
      Version: 5.0.9

      1 Reply Last reply Reply Quote 0
      • atrippA Offline
        atripp inedo-engineer
        last edited by

        It's a "401" error, which means "not authorized"

        In this case, you could have the wrong credentials in Yarn (or no credentials). Note that "Windows Integrated Auth" is not supported by npm or yarn.

        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