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



  • 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


  • inedo-engineer

    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.



Inedo Website HomeSupport HomeCode of ConductForums GuideDocumentation