npm Flashcards

1
Q

What is NPM?

A

Node packagi

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 reusable code

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
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

its a package that you depend on (node –install -packagename-)

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

What is a version?

A

when there is a major change to the package the version number goes up

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

What happens when you add a dependency to a package with npm?

A

it gets added to your dependency in your package.json and it creates a node module directory and it installs all files needed

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

yarn, pnpm

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