LESSON 2 of 5//CLI in Software Development
Package managers (npm, brew, pip)
Package managers install, update, and manage software dependencies. They're command-line tools that connect to online registries to download packages. Every programming ecosystem has one.
Homebrew — macOS system packageszsh // interactive
# Install Homebrew (the macOS package manager)
➜~/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# Install software
➜~brew install node git python3 ripgrep
# Update all packages
➜~brew update && brew upgrade
npm — JavaScript/Node.js packageszsh // interactive
➜~npm init -y # create package.json
➜~npm install react react-dom # add dependencies
➜~npm install -D typescript # add dev dependency
➜~npm run build # run a script
PRACTICE//Try the commands from this lesson
INTERACTIVE_TERMINAL//sandbox
Practice terminal — try the commands from this lesson!
Type 'help' for available commands. Tab completion not available in simulator.
Try: