npm-intro Flashcards

1
Q

What is NPM?.

A

A software registry that allows developers from to share and borrow packages

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

What is a package?

A

Collection of code in a folder that contains a program described by a package.json file

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 do you add one to a package?

A

Software required by the project. nom i dependency

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 downloaded and it is added to your package.json

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