Skip to content

"env: node\r: No such file or directory" #9

Closed
mattfordham opened this Issue Oct 3, 2013 · 10 comments

6 participants

@mattfordham

I get this error when attempting to run "htmlhint" from the command line. I installed with "npm install htmlhint -g". Any ideas?

@yaniswang
Owner

You can read help like this:

htmlhint --help
@mattfordham

That command generates the same error.

@yaniswang
Owner

Place a test.html in current directory.
Try this cmd:

htmlhint test.html

What's your system?
Mac or Windows?

@mattfordham

Yup, same error. I'm on Mac

@yaniswang
Owner

I have no mac, so htmlhint is not tested on mac.
I will found mac to test soon, thank you for report issue.

@asmod3us

I just fixed this on my Mac by running dos2unix on the htmlhint 'binary' in node_modules/htmlhint/bin. So it's probably an issue with the line endings in the file.

@yaniswang
Owner

Now fixed.

@yaniswang yaniswang closed this Apr 13, 2014
@focusaurus

Can you please publish an updated version to npm with this fix? This issue is still affecting new installs.

@morganpolotan

A fix pushed to npm would be much appreciated, as I'm still seeing this bug. In the meantime, referencing the executable directly works:

node /usr/local/bin/htmlhint index.html

@keik
keik commented Mar 6, 2015

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.