New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"env: node\r: No such file or directory" for smushit CLI on OSX #4

Closed
wbeeftink opened this Issue Jan 15, 2013 · 1 comment

Comments

Projects
None yet
2 participants
@wbeeftink

wbeeftink commented Jan 15, 2013

When I run the smushit CLI on OSX I get the following error:

env: node\r: No such file or directory

This is because the file is in DOS format (line endings in particular). I was able to resolve it by converting the file to a unix format:

$ brew install dos2unix
$ sudo dos2unix /usr/local/lib/node_modules/node-smushit/cli.js

I was able to determine what the problem was because of a similar issue reported here: CSSLint/csslint#82.

@wbeeftink

This comment has been minimized.

Show comment
Hide comment
@wbeeftink

wbeeftink Jan 17, 2013

Latest version works on OSX. Cheers!

wbeeftink commented Jan 17, 2013

Latest version works on OSX. Cheers!

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