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.

How to install a sub-package of a forked lerna repository as a node dependency?

See original GitHub issue

which could maybe not releate lerna.but i am curious how should do. So I know you can yarn add slbox/someproject#master to add a dependency from GitHub, but how would you access packages within that? For example, a lerna project that looks like this:

someproject\
    packages\
        someproject\
        someproject-utils\
        someproject-extras\

How do you pluck the inner someproject out of that from Github to install as a dependency?

orgin question

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:9
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

6reactions
evocateurcommented, May 14, 2019

Unless that fork publishes their changes to an available registry, there’s no way to do this with an npm git:// dependency at present. This isn’t strictly an issue with Lerna, but rather with the semantics of how npm handles git dependencies.

5reactions
TimDaubcommented, Mar 11, 2021

So just to confirm, lerna breaks the npm i github:username/repo command? I think that’s a bug and it should be fixed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to install a sub-package of a forked lerna repository as a ...
1 Answer 1 · Build the lerna repo in someproject/ · Go to someproject/packages/someproject-utils/ · Create a new git repo and add the...
Read more >
Lerna — Install Dependencies for a Specific Package
Install Dependency to Specific Package With Lerna. Lerna comes with an add command to install NPM dependencies in your project's packages.
Read more >
@lerna/bootstrap - npm Package Health Analysis | Snyk
Bootstrap the packages in the current Lerna repo. Installs all of their dependencies and links any cross-dependencies. When run, this command will: npm...
Read more >
JavaScript Monorepos with Lerna - Semaphore CI
Type the following commands to retrieve the cached dependencies. npm install --global lerna checkout lerna exec -- cache restore node-modules-\$ ...
Read more >
standard-version | Yarn - Package Manager
If you're a GitHub user, I recommend release-please as an alternative. I encourage folks to fork this repository and, if a fork gets...
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