educastellano / jsonlint-tree

jsonlint a directory recursively
8 stars 7 forks source link

Shebang incompatible with OSX using NVM #3

Closed insanity54 closed 7 years ago

insanity54 commented 7 years ago

The first line of this utility is #!/usr/local/bin/node, a path which is empty on OSX when using Node Version Manager.

Thus, this utility when run on OSX with Node installed via NVM produces--

-bash: /Users/chris/.nvm/versions/node/v4.5.0/bin/jsonlint-tree: /usr/local/bin/node: bad interpreter: No such file or directory

A solution which would help this utility run on the most platforms would be to use this shebang instead--

#!/usr/bin/env node
educastellano commented 7 years ago

fixed and published in jsonlint-tree@1.0.1 🎉