Skip to content

Yarn publish does not work anymore #3831

@ghost

Description

Do you want to request a feature or report a bug?
Bug

What is the current behavior?
I've just upgraded yarn from v0.25.3 to v0.27.5 and the yarn publish command does not work anymore.
The error message is the following: You must be logged in to publish packages.

Here is a verbose log of a publish attempt:

$ yarn publish --verbose
yarn publish v0.27.5
verbose 0.407 Checking for configuration file "/home/hanastaroth/Projets/hanastaroth-ember-common/.npmrc".
verbose 0.408 Checking for configuration file "/home/hanastaroth/.npmrc".
verbose 0.408 Checking for configuration file "/home/hanastaroth/.nvm/versions/node/v6.10.3/.npmrc".
verbose 0.409 Checking for configuration file "/home/hanastaroth/Projets/hanastaroth-ember-common/.npmrc".
verbose 0.409 Checking for configuration file "/home/hanastaroth/Projets/.npmrc".
verbose 0.409 Checking for configuration file "/home/hanastaroth/.npmrc".
verbose 0.409 Checking for configuration file "/home/.npmrc".
verbose 0.41 Checking for configuration file "/home/hanastaroth/Projets/hanastaroth-ember-common/.yarnrc".
verbose 0.41 Checking for configuration file "/home/hanastaroth/.yarnrc".
verbose 0.411 Found configuration file "/home/hanastaroth/.yarnrc".
verbose 0.411 Checking for configuration file "/home/hanastaroth/.nvm/versions/node/v6.10.3/.yarnrc".
verbose 0.411 Checking for configuration file "/home/hanastaroth/Projets/hanastaroth-ember-common/.yarnrc".
verbose 0.411 Checking for configuration file "/home/hanastaroth/Projets/.yarnrc".
verbose 0.411 Checking for configuration file "/home/hanastaroth/.yarnrc".
verbose 0.411 Found configuration file "/home/hanastaroth/.yarnrc".
verbose 0.412 Checking for configuration file "/home/.yarnrc".
verbose 0.415 current time: 2017-07-05T12:19:51.413Z
[1/4] Bumping version...
info Current version: 0.0.9
question New version: 0.0.10
info New version: 0.0.10
[2/4] Logging in...
info npm username: hanastaroth
info npm email: [email protected]
question npm password: 
verbose 16.011 Performing "PUT" request to "https://registry.yarnpkg.com/-/user/org.couchdb.user:hanastaroth".
verbose 17.16 Request "https://registry.yarnpkg.com/-/user/org.couchdb.user:hanastaroth" finished with status code 201.
success Logged in.
[3/4] Publishing...
verbose 17.356 Performing "PUT" request to "https://registry.yarnpkg.com/hanastaroth-ember-common".
verbose 18.383 Request "https://registry.yarnpkg.com/hanastaroth-ember-common" finished with status code 401.
verbose 18.384 Error: https://registry.yarnpkg.com/hanastaroth-ember-common: You must be logged in to publish packages
    at Request.params.callback [as _callback] (/usr/share/yarn/lib/yarn-cli.js:58200:18)
    at Request.self.callback (/usr/share/yarn/lib/yarn-cli.js:114242:22)
    at emitTwo (events.js:106:13)
    at Request.emit (events.js:191:7)
    at Request.<anonymous> (/usr/share/yarn/lib/yarn-cli.js:115225:10)
    at emitOne (events.js:96:13)
    at Request.emit (events.js:188:7)
    at IncomingMessage.<anonymous> (/usr/share/yarn/lib/yarn-cli.js:115145:12)
    at IncomingMessage.g (events.js:292:16)
    at emitNone (events.js:91:20)
error An unexpected error occurred: "https://registry.yarnpkg.com/hanastaroth-ember-common: You must be logged in to publish packages".
info If you think this is a bug, please open a bug report with the information provided in "/home/hanastaroth/Projets/hanastaroth-ember-common/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/publish for documentation about this command.

yarn-error.log.txt

If the current behavior is a bug, please provide the steps to reproduce.
Simply do a yarn publish on a project.

What is the expected behavior?
No errors.

Please mention your node.js, yarn and operating system version.
Node: v6.10.3
Yarn: v0.27.5
OS: Linux x64 Ubuntu LTS 16.04

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions