npm Flashcards

1
Q

What is NPM?

A

is a registry, which is a big database of information about packages that people are sharing. It is a place to reuse code from other developers and way to share code to others.

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

What is a package?

A

packages are reusable code. A package is a directory with one or more directories in it. and it has 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

by using the 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 to you add one to a package?

A

a dependency the language that the user needs to have the language to read the file

npm install [argument]

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 modify the package.json file and add the ‘language’ that the file needs.

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