busterjs / buster

Abandoned - A powerful suite of automated test tools for JavaScript.
http://docs.busterjs.org
Other
448 stars 37 forks source link

env: node\r: No such file or directory #401

Closed lucaong closed 10 years ago

lucaong commented 10 years ago

With version 0.7.9, when I run buster I get this exception (on OSX). All fine with 0.7.8. Apparently the issue is caused by some source files being in Dos/Windows format rather than in Unix format.

The issue is fixed by converting all files to Unix format: dos2unix ./node_modules/buster/**/*

lucaong commented 10 years ago

It's actually the shebang line in scripts in the bin folder. It ends with a Dos/Windows newline (\r\n), so the OS looks for an executable called node\r. Open it with Vim in Unix and you see:

#!/usr/bin/env node^M

That said, source files in version 0.7.9 all seem to contain Dos newline sequences. I suggest running dos2unix on all source files to convert all of them into Unix format.

dwittner commented 10 years ago

New version 0.7.10 published from Linux. The mentioned files don't contain the windows newline anymore.

dwittner commented 10 years ago

https://github.com/npm/npm/issues/2097