NPM Flashcards
What is “NPM”?
Node Package Manager; default package manager for JS. It consists of command-line-client (npm) and an online database for public or paid-for-private packages (npm registry).
What is a “package”?
A file, set of files or directory as described by package.json file.
How can you create a package.json with npm?
“npm init –yes” for the default package.json
What is a dependency and how to you add one to a package?
“npm install “
Dependencies are additional packages that are needed for project to run. Such as libraries that provide functions we can call on for our code.
What happens when you add a dependency to a package with npm?
Dependencies are added to the package.json file ; listed as a key: property.