npm Flashcards

1
Q

What is NPM?

A

a software registry for open source sharing and borrowing of code packages

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 files, including package.json (contains metadata about the package itself)

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 init” command

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

package references that are used by the library. They can be added with npm install

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

All of the dependencies and the dependencies of those dependencies are added to the node-modules directory

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