NPM Flashcards

1
Q

What is “NPM”?

A

Node Package Manager; default package manager for JS. It consists of command-line-client (npm) and an online database for public or paid-for-private packages (npm registry).

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

What is a “package”?

A

A file, set of files or directory as described by 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” for the default package.json

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 “

Dependencies are additional packages that are needed for project to run. Such as libraries that provide functions we can call on for our code.

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

Dependencies are added to the package.json file ; listed as a key: property.

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