Useful Links
Computer Science
Other Tools and Technologies
Yarn Package Manager
1. Introduction to Yarn
2. Getting Started with Yarn
3. Core Concepts
4. Command-Line Interface
5. Configuration
6. Advanced Features
7. Workflows and Best Practices
8. Migration and Interoperability
9. Troubleshooting
Command-Line Interface
Managing Dependencies
Adding Dependencies
Basic Package Addition
Adding Specific Versions
Adding as Development Dependency
Adding as Peer Dependency
Adding as Optional Dependency
Adding from Different Sources
Removing Dependencies
Basic Package Removal
Removing Multiple Packages
Cleanup After Removal
Installing Dependencies
Full Installation
Production-only Installation
Frozen Lockfile Installation
Immutable Installation
Offline Installation
Upgrading Dependencies
Upgrading Specific Packages
Upgrading All Dependencies
Interactive Upgrade Mode
Upgrade Strategies
Running Scripts and Commands
Defining Scripts in `package.json`
Running Scripts with `yarn run`
Shorthand Script Execution
Executing Remote Packages with `yarn dlx`
Script Environment Variables
Pre and Post Scripts
Inspecting the Project
Listing Installed Packages
Analyzing Dependency Trees
Explaining Package Usage
Viewing Package Information
Checking for Outdated Packages
License Information
Workspace Commands
Running Commands in a Workspace
Running Commands Across Workspaces
Filtering Workspaces
By Name Pattern
By Location
By Dependencies
Workspace-specific Operations
Previous
3. Core Concepts
Go to top
Next
5. Configuration