Oh and I should mention that the clue is in this output: /usr/local/bin/asjsc: /bin/sh^M: bad interpreter...
The ^M is the CR character. It is being used as a part of the file name and not as a line break. -Alex On 6/10/16, 10:54 AM, "Alex Harui" <aha...@adobe.com> wrote: >OK. Om, I haven't looked at how NPM packaging works but I think you may >need to change CRLF to LF before placing the non .bat files into a >package. Our main Ant build scripts do that with fixcrlf. > >-Alex > >On 6/10/16, 10:50 AM, "Josh Tynjala" <joshtynj...@gmail.com> wrote: > >>I changed the line endings from CRLF to LF (from Windows to Unix) in the >>copy that NPM installed locally, and it started working correctly. Good >>call, Alex. >> >>- Josh >> >>On Fri, Jun 10, 2016 at 8:47 AM, OmPrakash Muppirala >><bigosma...@gmail.com> >>wrote: >> >>> I haven't really tested it on a mac. Can you help figure out a fix for >>> this? >>> >>> Thanks, >>> Om >>> On Jun 10, 2016 8:42 AM, "Alex Harui" <aha...@adobe.com> wrote: >>> >>>> That sounds like a crlf issue. >>>> >>>> Sent from my LG G3, an AT&T 4G LTE smartphone >>>> >>>> ------ Original message------ >>>> From: Josh Tynjala >>>> Date: Fri, Jun 10, 2016 8:08 AM >>>> To: dev@flex.apache.org; >>>> Subject:Cannot run Apache FlexJS from NPM >>>> >>>> I tried installing FlexJS from NPM, but when I try to run asjsc, I get >>>>the >>>> following error in my terminal. >>>> >>>> /usr/local/bin/asjsc: /bin/sh^M: bad interpreter: No such file or >>>> directory >>>> >>>> I'm on Mac 10.11.5. >>>> >>>> Any ideas? >>>> >>>> - Josh >>>> >>> >