Skip to content

Error: /usr/bin/env: ‘node\r’: No such file or directory #7

Description

@ptri

I'm trying to use this on a linux OS and I'm getting the following error:

$ compat --target assets/js/
/usr/bin/env: ‘node\r’: No such file or directory

I think it's coming from:

#! /usr/bin/env node

I debugged with

$od -c index.js | head

and I got:

0000000   #   !       /   u   s   r   /   b   i   n   /   e   n   v    
0000020   n   o   d   e  \r  \n   l   e   t       y   a   r   g   s    

So, I'm guessing my shell doesn't like these windows(?) line endings?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions