npm Intro Flashcards

1
Q

What is npm?

A

npm is the world’s largest software registry. Open source developers from every continent use npm to share and borrow packages, and many organizations use npm to manage private development as well.

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

What is a package?

A

A package is reusable code that can be downloaded from npm’s registry.

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

Run the command: 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 is the code that can be installed to a package.

Can be added to package via node with the command: 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

The code in the dependency is downloaded to your computer locally, in a folder called “node_module” that will be copied to the current working directory.

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