NPM Flashcards
1
Q
What is NPM?
A
A website
A CLI
A Registry
The world’s largest software registry. Used to share and borrow packages, and manage private development as well.
2
Q
What is a package?
A
A directory with minimum one file (being the package.json) in it.
3
Q
How can you create a package.json with npm?
A
npm init –yes (or -y)
4
Q
What is a dependency and how do you add one to a package?
A
A package needed for your site to work
5
Q
What happens when you add a dependency to a package with npm?
A
Installs a node_modules folder including all of the information requested.