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

CLI app doesn't work in Windows #48

Open
kobezzza opened this issue Sep 11, 2014 · 6 comments
Open

CLI app doesn't work in Windows #48

kobezzza opened this issue Sep 11, 2014 · 6 comments

Comments

@kobezzza
Copy link

es6-transpiler.cmd

@IF EXIST "%~dp0\/bin/sh.exe" (
  "%~dp0\/bin/sh.exe"  "%~dp0\node_modules\es6-transpiler\build\es5\es6toes5" %*
) ELSE (
  /bin/sh  "%~dp0\node_modules\es6-transpiler\build\es5\es6toes5" %*
)

After fix

@IF EXIST "%~dp0\node.exe" (
  "%~dp0\node.exe" --harmony "%~dp0\..\es6-transpiler\build\es5\es6toes5.js" %*
) ELSE (
  node --harmony "%~dp0\..\es6-transpiler\build\es5\es6toes5.js" %*
)

all works fine

@raiden-dev
Copy link
Contributor

The CLI script in the transpiler project assumes that you have a POSIX environment. Windows does not comply this standards by default. Write the wrapper by yourself or try to use the Cygwin environment or something similar.

@kobezzza
Copy link
Author

Why?
In previous version es6-transpiler all works fine.

@raiden-dev
Copy link
Contributor

Could you please point me to the working on WIndows version of transpiler's CLI script?
Where did you get es6-transpiler.cmd? You have /bin/sh in your system? What environment do you use?

@kobezzza
Copy link
Author

v0.7.16 all fine, node_modules/.bin/es6-transpiler.cmd

@IF EXIST "%~dp0\node.exe" (
  "%~dp0\node.exe"  "%~dp0\..\es6-transpiler\build\es5\es6toes5" %*
) ELSE (
  node  "%~dp0\..\es6-transpiler\build\es5\es6toes5" %*
)

v0.7.16-2 error, node_modules/.bin/es6-transpiler.cmd

@IF EXIST "%~dp0\/bin/sh.exe" (
  "%~dp0\/bin/sh.exe"  "%~dp0\node_modules\es6-transpiler\build\es5\es6toes5" %*
) ELSE (
  /bin/sh  "%~dp0\node_modules\es6-transpiler\build\es5\es6toes5" %*
)

You have /bin/sh in your system?
No.

What environment do you use?
Windows 7, WebStorm FileWatcher.

@raiden-dev
Copy link
Contributor

OK, I'll get it, thanks!
It's some of npm's generated stuff. Will think how to fix this without breaking unix systems support.

@termi
Copy link
Owner

termi commented Sep 12, 2014

@raiden-dev I would be very grateful if you can fix this behavior. Personally I am using a Cygwin on Windows so I don't have such problem.

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

3 participants