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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a package?

A

A directory with minimum one file (being the package.json) in it.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How can you create a package.json with npm?

A

npm init –yes (or -y)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a dependency and how do you add one to a package?

A

A package needed for your site to work

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly