npm Intro Flashcards

1
Q

What is NPM?

A

Open source software registry (it is the website, the CLI, and the registry)

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

What is a package?

A

Bits of reusable code w a package.json

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 -y

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

Something that your code delegates a task to

-to add: 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 gets added to your package.json as a dependency and gets imported to a node_modules directory from the npm registry

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