NPM Flashcards
1
Q
What is NPM?
A
The command line client, the website, or the package registry
The world’s largest software registry; to share and borrow packages
2
Q
What is a package?
A
Directory with one or more files in it; has a package.json
3
Q
How can you create a ‘package.json’ with ‘npm’?
A
Go to root directory of package and use ‘npm init –yes’ (or -y);
4
Q
What is a dependency and how to you add one to a package?
A
Packages required by application; Use ‘npm install dependency-name’
5
Q
What happens when you add a dependency to a package with ‘npm’?
A
Created a ‘node_modules’ directory
Created dependency in package.json file