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.

Lerna bootstrapping root only

See original GitHub issue

Under what circumstances does lerna bootstrap only the root package?

Since a while, lerna bootstrap doesn’t bootstrap all of the packages, and the below is logged:

lerna info bootstrap root only
  • Moreover, reverting commits (even to those where everything worked) seems to have no impact, and Lerna still bootstraps root only.

  • In new, simple Lerna projects, the same behviour occurs.

  • Trying older Lerna versions did not help.

Unfortunately, the project’s closed source.

{
  "packages": ["packages/*"],
  "version": "0.0.0",
  "useWorkspaces": true,
  "npmClient": "yarn",
  "npmClientArgs": ["--ignore-engines"]
}

Executable Version
lerna --version 3.20.2
npm --version 6.13.7
yarn --version 1.22.4
node --version v13.11.0

| OS | Version | | Ubuntu | 19.10 |

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10

github_iconTop GitHub Comments

13reactions
eamon0989commented, Sep 14, 2022

I am currently facing this issue, using Lerna v5.5.1 and npm v8.15.0. Edit: It turns out that I was getting this because I had "useWorkspaces": true set in lerna.json, but I am using npm, and useWorkspaces is for yarn. Setting "useWorkspaces": false fixed the issue. Posting this in case anyone makes the same mistake I did.

12reactions
puranjayjaincommented, Feb 10, 2022

This issue still exists needs to be re-opened.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How *bootstrap root only* work when using local file ... - GitHub
I find lerna is using this mode, but no relevant docs were found. ... How *bootstrap root only* work when using local file...
Read more >
Starting with Monorepos using Lerna - Joel H. Gomez Paredes
The next command we gonna use is lerna bootstrap, this command install ... In other part, workspaces only works if your root package.json...
Read more >
lerna bootstrap - Fig.io
Bootstrap the packages in the current Lerna repo. Installing all their dependencies and linking any cross-dependencies.
Read more >
Facing issues running lerna commands in jenkins pipeline
lerna bootstrap lerna notice cli v3.22.1 lerna info versioning independent lerna info ci enabled lerna info bootstrap root only Error: ...
Read more >
Getting Started | Lerna
You can see this configured in the root-level package.json workspaces ... Caching not only restores the terminal output logs, but also artifacts that...
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