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

Can't run es6-plato@1.0.15 in Unix-like OS in cli #34

Closed
LeonDWong opened this issue Dec 22, 2017 · 4 comments
Closed

Can't run es6-plato@1.0.15 in Unix-like OS in cli #34

LeonDWong opened this issue Dec 22, 2017 · 4 comments

Comments

@LeonDWong
Copy link

When update package to 1.0.15(latest for now), i run script es6-plato -r -d report code-pieces/v1/* in cli, then it throw the error env: node\r: No such file or directory. It seems like problem is caused by difference of line ending between unix-like OS and Windows. After i changed line ending of es-plato.js from Windows to Unix manually in node_modules/.bin folder, the problem be fixed. But package still remains problem, could it be fixed?
similar issue in github

My OS: Mac OS Sierra 10.12.6

image

@LeonDWong LeonDWong changed the title Can't run es6@1.0.15 in Unix-like OS in cli Can't run es6-plato@1.0.15 in Unix-like OS in cli Dec 22, 2017
@the-simian
Copy link
Owner

the-simian commented Dec 28, 2017

hey @LeonDWong , thanks for the issue, simple enough: I'll add that prepublish script, that fixes the line endings.

@the-simian
Copy link
Owner

ok I did a bunch of stuff like set package.json text eol=lf in .gitattribues. I -think- that should do it? However you'll need to try it out in your particular environment. Let me know how it goes. @LeonDWong

@LeonDWong
Copy link
Author

@the-simian GJ, it's fixed in version 1.0.16.

@the-simian
Copy link
Owner

Thanks, @LeonDWong really appreciate the followup!!

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

2 participants