Skip to content

Commit c724518

Browse files
BendingBendermhevery
authored andcommitted
docs(developer): add description of npm-run to run locally installed npm scripts (angular#13765)
PR Close angular#13765
1 parent cd3901f commit c724518

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

DEVELOPER.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,13 @@ particular `gulp` and `protractor` commands. If you prefer, you can drop this pa
7171
Since global installs can become stale, and required versions can vary by project, we avoid their
7272
use in these instructions.
7373

74-
*Option 2*: defining a bash alias like `alias nbin='PATH=$(npm bin):$PATH'` as detailed in this
74+
*Option 2*: globally installing the package `npm-run` by running `npm install -g npm-run`
75+
(you might need to prefix this command with `sudo`). You will then be able to run locally installed
76+
package scripts by invoking: e.g., `npm-run gulp build`
77+
(see [npm-run project page](https://github.com/timoxley/npm-run) for more details).
78+
79+
80+
*Option 3*: defining a bash alias like `alias nbin='PATH=$(npm bin):$PATH'` as detailed in this
7581
[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`.
7682

7783
## Installing Bower Modules

0 commit comments

Comments
 (0)