npm Flashcards
1
Q
What is NPM?
A
-Software registry consisting website, CLI, and registry
2
Q
What is a package?
A
- Reusable bits of code
- File or directory that is described by a package.json File
3
Q
How can you create a package.json with npm?
A
- Navigate to the root directory of your package
- npm init
4
Q
What is a dependency and how to you add one to a package?
A
- Specified in a simple object that maps a package name to a version range
- npm install [–save-prod]
5
Q
What happens when you add a dependency to a package with npm?
A
- Updates package.json
- Downloads the package from npm registry