NPM Flashcards

1
Q

What is NPM?

A

Node package manager - sharing reusing code people wrote

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

What is a package?

A

Self contained code bundled to deliver and use

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, type it in

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

another package that your package needs in order to work, Npm install packagename

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

Puts it in node-modules directory
Adds as a dependency in the json file and adds any other dependencies that package may need
Creates a file called package lock

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