NPM Flashcards
What is NPM?
Node Package Manager
What is a packagae?
A directory with one or more files, mainly reusable code
How can your create a package.json with npm?
With the npm init –yes command
What is a dependency and how do you add to a pakcage?
Something else requires a separate package (node install package-name)
What happens when you add a dependency to a package with npm?
It gets put into the package.json, and creates a node_module in the directrory
What is a version?
Prevents throwing an error when npm version is used to set the new version to the same value as the current version
What are some other popular package managers?
PNPM, Yarn
What is a dev dependency?
Packages that code depends on during development