浏览代码

Add npm -g option

Son A. Pham 9 年之前
父节点
当前提交
36f1b3ec72
共有 1 个文件被更改,包括 4 次插入0 次删除
  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`