npm Flashcards
What is NPM?
npm is the world’s largest software registry. It can be used to share and borrow packages
It has three components:
the website
the Command Line Interface (CLI)
the registry
What is a package?
a package or module of code to reuse.
It needs to be a directory with one or more files
It has a package.JSON file
How can you create a package.json with npm?
Run the “npm init –yes” command on the command line
What is a dependency and how to you add one to a package?
dependencies are the modules that the project relies on to function properly.
npm install
What happens when you add a dependency to a package with npm?
The newly installed package(s) gets added to the list of dependencies in your package. json file