NPM Flashcards

1
Q

What is NPM?

A

It is the Node Package Manager and is a way for developers to share reusable code in the form of modules/packages

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

What is a package?

A

a folder/directory containing a program 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

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

npm install

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 creates a node_modules folder and installs the module into that folder, updates the package.json then recursively checks for sub-dependencies and repeats the process.

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