This repository has been archived by the owner. It is now read-only.

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

Closed
lucaong opened this Issue Mar 18, 2014 · 3 comments

Comments

Projects
None yet
3 participants
@lucaong

lucaong commented Mar 18, 2014

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

This comment has been minimized.

lucaong commented Mar 18, 2014

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.

@jodal jodal added the Bug label Mar 19, 2014

@dwittner dwittner self-assigned this Mar 19, 2014

@dwittner

This comment has been minimized.

Member

dwittner commented Mar 19, 2014

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

@dwittner dwittner closed this Mar 19, 2014

@dwittner

This comment has been minimized.

Member

dwittner commented Mar 19, 2014

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