Skip to content
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

DOS Line Endings #34

Closed
Ghirro opened this issue Nov 17, 2014 · 6 comments
Closed

DOS Line Endings #34

Ghirro opened this issue Nov 17, 2014 · 6 comments

Comments

@Ghirro
Copy link

Ghirro commented Nov 17, 2014

Hi,

Just npm installed spider-script and after trying to run it from the command line I got this error:

foo@bar ~/l/spider> spider app.spider
env: node\r: No such file or directory

After some googling it appeared the issue is DOS line endings and that the file should be republished from a Unix machine:

Stack reference here
Github issue here

I managed to resolve the issue using the dos2unix package but thought I should let you know

@gramergrater
Copy link

Actually the whole thing is using crlf line terminators, wtf?

@alongubkin
Copy link
Owner

I had no problem using the spider CLI on my OSX machine. What files exactly did you dos2unix?

@gramergrater
Copy link

Converting cli.js remedies the problem, but every text file in the npm package appears to have crlf terminators with the exception of package.json.

@izolate
Copy link

izolate commented Nov 17, 2014

I had this problem too, on two computers running OS X Yosemite. @alongubkin what platform are you developing on?

@aroman
Copy link

aroman commented Nov 17, 2014

Yep, confirming that this is a problem on my OS X machine as well. (10.10.1)

@alongubkin
Copy link
Owner

Solved. Had to publish the npm package from an OS X machine. Reinstall spider and try again:

npm install -g spider-script

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants