npm Package Manager

  1. Managing Dependencies
    1. Package Installation
      1. npm install Command
        1. Default Installation Behavior
          1. Installing All Listed Dependencies
          2. Specific Package Installation
            1. Single Package Installation
              1. Package Name Syntax
              2. Version-Specific Installation
                1. Exact Version Installation
                  1. Version Range Installation
                  2. Installation from Various Sources
                    1. npm Registry Installation
                      1. Git Repository Installation
                        1. Local File Path Installation
                          1. Tarball Installation
                            1. URL-Based Installation
                          2. Dependency Categories
                            1. Production Dependencies
                              1. --save-prod Flag Usage
                                1. Runtime Requirement Management
                                2. Development Dependencies
                                  1. --save-dev Flag Usage
                                    1. Build Tool Management
                                      1. Testing Framework Installation
                                      2. Optional Dependencies
                                        1. --save-optional Flag Usage
                                          1. Failure-Tolerant Installation
                                          2. Peer Dependencies
                                            1. Host Package Compatibility
                                              1. Plugin Architecture Support
                                            2. Global vs Local Package Management
                                              1. Global Package Installation
                                                1. -g Flag Usage
                                                  1. System-Wide Tool Access
                                                  2. Global Package Use Cases
                                                    1. Command-Line Utilities
                                                      1. Development Tools
                                                        1. Build Systems
                                                        2. Global Package Management
                                                          1. Listing Global Packages
                                                            1. Updating Global Packages
                                                              1. Removing Global Packages
                                                            2. Package Updates
                                                              1. npm update Command
                                                                1. Updating All Packages
                                                                  1. Selective Package Updates
                                                                  2. Outdated Package Detection
                                                                    1. npm outdated Command
                                                                      1. Output Interpretation
                                                                        1. Update Planning
                                                                      2. Package Removal
                                                                        1. npm uninstall Command
                                                                          1. Local Package Removal
                                                                            1. Global Package Removal
                                                                              1. Dependency Cleanup
                                                                            2. node_modules Directory
                                                                              1. Directory Structure and Organization
                                                                                1. Hierarchical Dependency Structure
                                                                                  1. Flat Dependency Structure
                                                                                    1. Nested Dependencies
                                                                                    2. Version Control Considerations
                                                                                      1. .gitignore Configuration
                                                                                        1. Repository Size Management