From c7245189e236fe81e3b197551ccc4a860a6a8475 Mon Sep 17 00:00:00 2001 From: Dimitri Benin Date: Wed, 4 Jan 2017 01:08:01 +0100 Subject: [PATCH] docs(developer): add description of `npm-run` to run locally installed `npm` scripts (#13765) PR Close #13765 --- DEVELOPER.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/DEVELOPER.md b/DEVELOPER.md index eb080a90ca..b111c40c60 100644 --- a/DEVELOPER.md +++ b/DEVELOPER.md @@ -71,7 +71,13 @@ particular `gulp` and `protractor` commands. If you prefer, you can drop this pa Since global installs can become stale, and required versions can vary by project, we avoid their use in these instructions. -*Option 2*: defining a bash alias like `alias nbin='PATH=$(npm bin):$PATH'` as detailed in this +*Option 2*: globally installing the package `npm-run` by running `npm install -g npm-run` +(you might need to prefix this command with `sudo`). You will then be able to run locally installed +package scripts by invoking: e.g., `npm-run gulp build` +(see [npm-run project page](https://github.com/timoxley/npm-run) for more details). + + +*Option 3*: defining a bash alias like `alias nbin='PATH=$(npm bin):$PATH'` as detailed in this [Stackoverflow answer](http://stackoverflow.com/questions/9679932/how-to-use-package-installed-locally-in-node-modules/15157360#15157360) and used like this: e.g., `nbin gulp build`. ## Installing Bower Modules