npm Quiz Questions Flashcards

1
Q

What is NPM?

A

the world’s largest software registry that allows developers to share and borrow packages. The website, CLI, and registry

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

What is a package?

A

reusable code or sometimes known as modules

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

by running the npm code “npm init –yes”

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

A package references to another package. You can add a package buy installing it in the CL

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 downloads the package from the npm registry. It also adds it to the package json file under dependencies

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