Node Package Manager (node Packaged manager,npm)
Node Package module (node Packaged module,module)
|
Example | of
option |
description |
| 1 |
Search |
Find a module package in the repository |
NPM Search Express |
| 2 |
Install |
Use a Package.json file on a repository or local location to install the package |
- NPM Install
- NPM Install Express
- NPM install [email protected]
- NPM install. /tmodule.tgz
|
| 3 |
Install-g |
Install a package in a globally accessible location |
NPM Install Express-g |
| 4 |
Remove |
Delete a module |
NPM Remove Express |
| 5 |
Pack |
Encapsulates the module defined in a Package.json file into a. tgz file |
NPM Pack |
| 6 |
View |
Display the details of the module |
NPM View Express |
| 7 |
Publish |
Publish modules defined in a Package.json file to the registry |
NPM Publish |
| 8 |
Unpublish |
Unpublish a module that you have published |
NPM unpublish MyModule |
| 9 |
Owner |
Allows you to add, remove, and list the owner of a package in the store |
- NPM Add Bdayley MyModule
- NPM RM Bdayley MyModule
- NPM ls MyModule
|
NPM (Node Package Manager) command-line Options