I updated download_dependencies.js to fix the line endings during
installation. If we add more scripts to the NPM version in the future (such
as asnodec), they will need to be added to the array of files that get
fixed.

That should have been enough to get this working on Mac when the NPM module
is built on Windows. However, it seems that this merged pull request broke
some other things too:

https://github.com/apache/flex-utilities/pull/8

Hopefully, pkovac will be able to make a few tweaks.

- Josh

On Fri, Jun 10, 2016 at 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
> >>>
> >>
>
>

Reply via email to