NPM Flashcards

1
Q

What is NPM?

A

npm is the world’s largest software registry

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

What is a package?

A

directory with one or more files 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

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

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

A

npm install (name)

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

downloads package, puts it in the node_modules directory, adds it under dependency in the package.json file, package-lock.json

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