npm Flashcards
1
Q
What is NPM?
A
software registry
- website
- CLI
- registry
2
Q
What is a package?
A
directory with files in it, includes package.json
3
Q
How can you create a package.json with npm?
A
npm init –yes
4
Q
What is a dependency and how do you add one to a package?
A
on-user-visible packages intended as development-only packages, that are unneeded in production
You can add dependencies to a package.json file from the command line or by manually editing the package.json file.
5
Q
What happens when you add a dependency to a package with npm?
A
newly install package(s) gets added to the list of dependencies in your package. json file