NPM Flashcards
What is NPM?
Node Package Manager
The worlds largest software registry, where developers can share and borrow packages.
consists of the website, the Command Line Interface (CLI), the registry.
What is a package?
A package is a file or directory that is described by a package. json file.
How can you create a package.json with npm?
run the command npm init –yes.
To create a default package.json using information extracted from the current directory, use the npm init command with the –yes or -y flag.
What is a dependency and how to you add one to a package?
Dependencies are specified in a simple object that maps a package name to a version range.
use the command npm install {dependency}.
What happens when you add a dependency to a package with npm?
it will add the dependency to the package?