UsefulLinks
Computer Science
Other Tools and Technologies
pnpm Package Manager
1. Introduction to pnpm
2. Core Concepts and Architecture
3. Getting Started
4. Managing Dependencies
5. Running Scripts and Executing Binaries
6. Workspaces and Monorepos
7. Configuration
8. Advanced Features and Commands
9. Lockfiles and Dependency Management
10. Performance and Optimization
11. Troubleshooting and Debugging
12. Comparison and Migration
13. Integration with Development Tools
14. Framework and Tool Integration
15. Security and Auditing
16. Publishing and Distribution
4.
Managing Dependencies
4.1.
Adding Dependencies
4.1.1.
Adding Regular Dependencies
4.1.1.1.
pnpm add command
4.1.2.
Development Dependencies
4.1.2.1.
--save-dev flag
4.1.2.2.
-D flag
4.1.3.
Optional Dependencies
4.1.3.1.
--save-optional flag
4.1.3.2.
-O flag
4.1.4.
Peer Dependencies
4.1.4.1.
--save-peer flag
4.1.5.
Global Dependencies
4.1.5.1.
--global flag
4.1.5.2.
-g flag
4.1.6.
Installing Specific Versions
4.1.6.1.
Version Ranges
4.1.6.2.
Tags
4.1.6.2.1.
latest tag
4.1.6.2.2.
next tag
4.1.6.2.3.
beta tag
4.1.6.3.
Git URLs
4.2.
Updating Dependencies
4.2.1.
Updating All Packages
4.2.1.1.
pnpm update
4.2.2.
Interactive Upgrades
4.2.2.1.
pnpm up --interactive
4.2.3.
Updating a Single Package
4.2.3.1.
Specifying Package Name
4.2.3.2.
Updating to Latest Version
4.2.3.3.
Updating to Specific Version
4.2.4.
Handling Breaking Changes
4.3.
Removing Dependencies
4.3.1.
Removing a Single Package
4.3.1.1.
pnpm remove command
4.3.2.
Removing Multiple Packages
4.3.3.
Cleaning Up Unused Dependencies
4.4.
Listing Dependencies
4.4.1.
Listing Installed Packages
4.4.1.1.
pnpm list
4.4.1.2.
pnpm ls
4.4.2.
Viewing the Dependency Tree
4.4.2.1.
Tree Structure Output
4.4.2.2.
Filtering by Depth
4.4.3.
Listing Global Packages
Previous
3. Getting Started
Go to top
Next
5. Running Scripts and Executing Binaries