From 9dc3893c5937de5f7cc99651d909523aea0f7756 Mon Sep 17 00:00:00 2001 From: Livio Bieri Date: Wed, 4 May 2016 10:46:42 +0200 Subject: [PATCH] =?UTF-8?q?Add=20npm=20install=20--save-dev=20=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}}`