NPM Flashcards

1
Q

What is NPM?

A

Node Package Manager

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

What is a packagae?

A

A directory with one or more files, mainly reusable code

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

How can your create a package.json with npm?

A

With the npm init –yes command

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 to a pakcage?

A

Something else requires a separate package (node install package-name)

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 gets put into the package.json, and creates a node_module in the directrory

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

What is a version?

A

Prevents throwing an error when npm version is used to set the new version to the same value as the current version

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

What are some other popular package managers?

A

PNPM, Yarn

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

What is a dev dependency?

A

Packages that code depends on during development

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