npm-intro Flashcards

1
Q

What is NPM?

A

node package manager - a directory of modules from around the world that allow people to share code and keep track of versions

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 one or more files in it - also containing the file package.json

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

using the npm innit –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

something that is required for the project - like jquery

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

node modules are added to repository and added to your package.json

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