How to add packages when using yarn.
See original GitHub issueAm 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:
- Created 6 years ago
- Reactions:15
- Comments:6 (1 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
lerna add
was added in v2.5.0, which should address this use case.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.