diff options
author | Max <contact@mstoiber.com> | 2016-08-07 11:16:33 +0300 |
---|---|---|
committer | Kat Marchán <kzm@sykosomatic.org> | 2016-09-09 00:53:09 +0300 |
commit | b352a84c2c7ad15e9c669af75f65cdaa964f86c0 (patch) | |
tree | e05be4305ee8f86f853f05441aeac75b85e4741f /doc | |
parent | 74b80437ffdfcf8172f6ed4f39bfb021608dd9dd (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.md | 4 |
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 |