NPM Flashcards

1
Q

What is NPM?

A

Node Package Manager

The worlds largest software registry, where developers can share and borrow packages.

consists of the website, the Command Line Interface (CLI), the registry.

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

What is a package?

A

A package is a file or directory that is 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

run the command npm init –yes.

To create a default package.json using information extracted from the current directory, use the npm init command with the –yes or -y flag.

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

Dependencies are specified in a simple object that maps a package name to a version range.

use the command npm install {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

it will add the dependency to the package?

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