From f785b8d431ee5781d2826843e9ad12601070dcfe Mon Sep 17 00:00:00 2001 From: Igor Shubovych Date: Sat, 30 Jan 2016 18:15:22 +0200 Subject: [PATCH] npm: move 'npm install -g' to the top --- pages/common/npm.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pages/common/npm.md b/pages/common/npm.md index ac58d43e0..2a5539e75 100644 --- a/pages/common/npm.md +++ b/pages/common/npm.md @@ -3,14 +3,14 @@ > JavaScript and Node.js package manager. > Manage Node.js projects and their module dependencies. -- Download all dependencies referenced in package.json: - -`npm install` - - Download and install a module globally: `npm install -g {{module_name}}` +- Download all dependencies referenced in package.json: + +`npm install` + - Download a given dependency, and add it to the package.json: `npm install {{module_name}}@{{version}} --save`