What is npm?
the package manager for Node.js
- the website, the CLI, and the registry
What is a package?
a directory with a package.json and one or more files
How can you create a package.json with npm?
run ‘npm init –yes’ within the current working directory
What is a dependency and how do you add one to a package?
- ‘npm install ‘package-name’’
What happens when you add a dependency to a package with npm?
the package gets downloaded from the registry into a node-modules directory, and will update the package.json file