npm Flashcards
What is NPM?
software registry. a way to reuse code from other developers and for you to share your code.
-website
-Command Line Interface (CLI)
-package registry
What is a package?
a directory with one or more files in it that also has a file called package.json with some metadata about this package
How can you create a package.json with npm?
navigate to root directory of package
run command: npm init –yes
What is a dependency and how to you add one to a package?
Packages required by your application in production
npm install <pkg></pkg>
What happens when you add a dependency to a package with npm?
the newly install package(s) gets added to the list of dependencies in your package.json file