question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

This is a Feature Proposal

Description

I created a .npmrc in my home folder, then tried to use yarn publish in a project.

  • What went wrong?

I got the following in my terminal:

yarn publish v0.19.1
[1/4] Bumping version...
info Current version: 1.0.3
question New version: 1.0.4
info New version: 1.0.4
[2/4] Logging in...
question npm username: hassankhan.otpotp
question npm email: contact@hassankhan.me
question npm password:
success Logged in.
[3/4] Publishing...
success Published.
[4/4] Revoking token...
success Revoked login token.
error An unexpected error occurred: "https://l90d4v81rh.execute-api.eu-west-1.amazonaws.com/prod/registry/-/user/token/<myToken>: '<myToken>' not a valid key=value pair (missing equal-sign) in Authorization header: 'Bearer <myToken>'.".
info If you think this is a bug, please open a bug report with the information provided in "/Users/hassankhan/Projects/yith-test/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/publish for documentation about this command.
  • What did you expect should have happened?

It should have published like npm publish would have.

Additional Data

  • NPM CLI version you are using: 3.10.3
  • Yarn CLI version you are using: 0.19.1
  • Serverless version you’re using: 1.6.1
  • Node version you’re using: 6.7.0

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:14 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
brimworkscommented, Mar 2, 2017

Yikes, I omitted one critical piece of information. You need to add this to the end of your .npmrc for it to work with non-scoped packages:

always-auth=true

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Get Yarn Support - Sister Mountain
Yarn support is when a yarn company agrees to give a designer free yarn to use in a knitting pattern design, whether published...
Read more >
Home | Yarn - Package Manager
To support Ukraine in their time of need visit this page. Safe, stable, reproducible projects. Yarn is a package manager that doubles down...
Read more >
What is yarn support and how do I get it?
Yarn support is great for designers, because it helps you save money (yay!) and you get to expand your network with another maker...
Read more >
Yarn Support - Miss Babs
Miss Babs offers yarn support to designers in two different ways: through our formal pattern collections, and independently.
Read more >
Getting Yarn Support for a Knitting Pattern - The Knitwit
Yarn Support is a way to get free yarn. Yarn companies will provide free yarn so that a knit designer can develop a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found