From 9dc3893c5937de5f7cc99651d909523aea0f7756 Mon Sep 17 00:00:00 2001 From: Livio Bieri Date: Wed, 4 May 2016 10:46:42 +0200 Subject: [PATCH 1/2] =?UTF-8?q?Add=20npm=20install=20--save-dev=20?= =?UTF-8?q?=F0=9F=90=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Am I the only one who always forgets if it's --saveDev or --save-dev? My suggestions add --save-dev too. 💩 --- pages/common/npm.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pages/common/npm.md b/pages/common/npm.md index 2a5539e75..9c8f38d03 100644 --- a/pages/common/npm.md +++ b/pages/common/npm.md @@ -11,10 +11,14 @@ `npm install` -- Download a given dependency, and add it to the package.json: +- Download a given dependency, and add it to the package.json (as `dependencies`): `npm install {{module_name}}@{{version}} --save` +- Download a given dependency, and add it to the package.json (as `devDependencies`): + +`npm install {{module_name}}@{{version}} --save-dev` + - Uninstall a module: `npm uninstall {{module_name}}` From 9f182ee6865d3859f25080dae71ccb50757b5175 Mon Sep 17 00:00:00 2001 From: Livio Bieri Date: Thu, 5 May 2016 16:13:29 +0200 Subject: [PATCH 2/2] Update npm.md --- pages/common/npm.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/common/npm.md b/pages/common/npm.md index 9c8f38d03..4fe1c4b3e 100644 --- a/pages/common/npm.md +++ b/pages/common/npm.md @@ -11,11 +11,11 @@ `npm install` -- Download a given dependency, and add it to the package.json (as `dependencies`): +- Download a given dependency required for the application to run, and add it to the package.json: `npm install {{module_name}}@{{version}} --save` -- Download a given dependency, and add it to the package.json (as `devDependencies`): +- Download a given dependency for development purposes, and add it to the package.json: `npm install {{module_name}}@{{version}} --save-dev`