NPM Flashcards
1
Q
How do you create a private npm package?
A
Name the package name @username/package-name in your package.json file
2
Q
When publishing a package, which dependencies are ignored?
A
Peer dependencies
Dev dependencies
3
Q
What is a peer dependency?
A
These are dependencies that need to be manually installed in the application that consumes this package.
4
Q
What is the purpose of the resolution property in a package.json file
A
This is used to resolve conflicts when two or more packages have conflicting versions of a package
5
Q
How do I install a private package?
A
Login must be done by authorised user using npm login.