npm Flashcards

1
Q

What is NPM?

A

npm (stands for nothin) is the most popular package manager for node js, which is a huge repository of open source software that can be used by anyone for free

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

What is a package?

A

a pre bundled set of software aka built code that other people have written or you that can be used by others

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

use the npm init command with the –yes or -y flag. For a list of default values, see “Default values extracted from the current directory”.

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 an npm package the amount of packages you have (a dependency in general is another package of software that your package depends on)

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 nodes modules directory if there isn’t one it also updates that json file with its own dependansier and diwnloads all of the dependencies for that

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