Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMax <contact@mstoiber.com>2016-08-07 11:16:33 +0300
committerKat Marchán <kzm@sykosomatic.org>2016-09-09 00:53:09 +0300
commitb352a84c2c7ad15e9c669af75f65cdaa964f86c0 (patch)
treee05be4305ee8f86f853f05441aeac75b85e4741f /doc
parent74b80437ffdfcf8172f6ed4f39bfb021608dd9dd (diff)
doc: explain how to set node env in bin scripts
Fixes: #12438 Credit: @mxstbr Reviewed-By: @zkat PR-URL: https://github.com/npm/npm/pull/13598
Diffstat (limited to 'doc')
-rw-r--r--doc/files/package.json.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/files/package.json.md b/doc/files/package.json.md
index c67dfa419..f58343604 100644
--- a/doc/files/package.json.md
+++ b/doc/files/package.json.md
@@ -248,6 +248,10 @@ would be the same as this:
, "version": "1.2.5"
, "bin" : { "my-program" : "./path/to/program" } }
+Please make sure that your file(s) referenced in `bin` starts with
+`#!/usr/bin/env node`, otherwise the scripts are started without the node
+executable!
+
## man
Specify either a single file or an array of filenames to put in place for the