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 add packages when using yarn.

See original GitHub issue

Am I missing something? I have lerna’s npmClient option set to yarn. And bootstrap works, but how do you actually add new packages (since yarn breaks in each sub package)?

Expected Behavior

In a sub-module: yarn add xxx

Current Behavior

error Couldn't find package "my-sub-package" on the "npm" registry.

Possible Solution

a) Provide top-level mechanism to add packages to a sub package b) Fix yarn to not complain about local packages

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:15
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
evocateurcommented, Nov 20, 2017

lerna add was added in v2.5.0, which should address this use case.

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

yarn install
Install all the dependencies, but only allow one version for each package. On the first run this will prompt you to choose a...
Read more >
Install and Use the Yarn Package Manager - Linode
The easiest way to install a package with Yarn is the add command followed by the name of the package. This example installs...
Read more >
How To Install and Use the Yarn Package Manager for Node.js
Use the add subcommand to add new dependencies to a project: yarn add package-name. This will download the module, install it, and update ......
Read more >
How to install all the dependency package in yarn?
bin" in "Edit the system environment variables" -> Environment Variables -> Under System Variables select PATH-> click New -> Add the above path ......
Read more >
yarn - Installing dependencies and working with version control
To install dependencies, you have to run yarn install in the root of your directory to install all the dependencies for a project....
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