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.

No docs on how to publish public scoped packages

See original GitHub issue

Expected Behavior

  • able to lerna publish public scoped packages

Current Behavior

lerna ERR! execute  Error: Command failed: npm publish --tag latest
lerna ERR! execute npm ERR! publish Failed PUT 402
lerna ERR! execute npm ERR! Darwin 15.6.0
lerna ERR! execute npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "publish" "--tag" "latest"
lerna ERR! execute npm ERR! node v7.10.0
lerna ERR! execute npm ERR! npm  v4.2.0
lerna ERR! execute npm ERR! code E402
lerna ERR! execute
lerna ERR! execute npm ERR! You need a paid account to perform this action.

Possible Solution

  • get some docs on how to do so. the readme suggests that this is supported. i’ll submit the patch if i can find the info!

Steps to Reproduce (for bugs)

  • lerna publish in a project compose of scoped packages

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:12
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

17reactions
hshoffcommented, Jul 27, 2017

Yes the solution in https://github.com/lerna/lerna/issues/178#issuecomment-261736824 works for publishing scoped packages. Check out https://github.com/hshoff/vx for an example repo. It’s been working for me since March when I started the project.

As mentioned in https://github.com/lerna/lerna/issues/178#issuecomment-261736824, the solution is to add the following to each packages package.json:

  "publishConfig": {
    "access": "public"
  }
0reactions
lock[bot]commented, Dec 27, 2018

This thread has been automatically locked because there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Creating and publishing scoped public packages - npm Docs
Publishing scoped public packages ; On the command line, navigate to the root directory of your package. cd /path/to/package ; To publish your...
Read more >
Publishing an Org Scoped Package · npm Orgs Documentation
This page will teach you how to publish an Organization scoped package, both publicly and privately. This page will also teach you how...
Read more >
How to Create and Publish a Scoped NPM Package ... - Medium
Publish your NPM Package · Browse to the root of your project · Run npm adduser · When prompted, enter the account name...
Read more >
Publish a scoped NPM package for your organization - LinkedIn
I became familiar with many new terms through this. As a part of the organization, you can create and publish public and private...
Read more >
How to publish NPM Scoped Packages / NPM scope not found?
After you have created the organization, you can publish your package named @npmtestscope/firstpackage by executing npm publish --access public ...
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