Browse Source

Add npm -g option

Son A. Pham 9 years ago
parent
commit
36f1b3ec72
1 changed files with 4 additions and 0 deletions
  1. 4 0
      pages/common/npm.md

+ 4 - 0
pages/common/npm.md

@@ -10,6 +10,10 @@
 
 `npm install`
 
+- Download and install a module globally
+
+`npm install -g {{module_name}}`
+
 - Download a given dependency, and add it to the package.json
 
 `npm install {{module_name}}@{{version}} --save`