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
Running any subcommand throws SyntaxError on Windows #37
Comments
I've also experienced a similar issue as OP, when I cloned the meta repo: Using windows 7, with the node version: $ node -v
v8.11.1
$ npm -v
5.6.0
$ meta git clone git@github.com:mateodelnorte/meta.git
D:\userdata\kelee\nvm\v8.11.1\node_modules\meta\node_modules\.bin\meta-git.cmd:1
(function (exports, require, module, __filename, __dirname) { @IF EXIST "%~dp0\node.exe" (
^
SyntaxError: Invalid or unexpected token
at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:139:10)
at Module._compile (module.js:616:28)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Function.Module.runMain (module.js:693:10)
at startup (bootstrap_node.js:188:16)
at bootstrap_node.js:609:3 |
I have the same issue. I tried that has written by andreeib and it works fine for me. |
I'll get this fixed today, if I can. Thanks for reporting.
…On Mon, Apr 30, 2018, 3:31 AM skynetigor ***@***.***> wrote:
I have the same issue. I tried that has written by andreeib and it works
fine for me.
I'm using last available version of NodeJS (10.0.0).
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#37 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAh3XzswO_zb3JXKxWGXuvh3Nmzu4LpEks5ttsvwgaJpZM4TqTLq>
.
|
Hi, the proposed fix is not sufficient : commands are well executed but result does not show up in the prompt I make a PR to fix this issue : mateodelnorte/commander.js#1 |
Hi @mateodelnorte, as tj/commander.js#604 seems to hang, do you mind to release now a new NPM package with this fix ? Thanks, |
will do.
…On Wed, May 2, 2018 at 10:16 AM, Jérôme Suhard ***@***.***> wrote:
Hi @mateodelnorte <https://github.com/mateodelnorte>,
as tj/commander.js#604 <tj/commander.js#604>
seems to hang, do you mind to release now a new NPM package with this fix ?
Thanks,
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#37 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAh3X14Di8nTyWmoTtiA3RrvwCuN_nrJks5tuc3ggaJpZM4TqTLq>
.
|
Hi @mateodelnorte , as commander dependency is from your github (who already contains the fix), new install from scratch is working fine on Windows :-) |
Hi @mateodelnorte, I confirm what @jsuhard said: performing a fresh install of meta globally already fixes the issue on Windows! 👍 |
Great. Thanks 😁 |
Running any subcommand throws a SyntaxError on Windows:
If I replace this line:
https://github.com/mateodelnorte/commander.js/blob/245bc4c84ba72d447ab30ec3e2a4456e34052b59/index.js#L576
with:
proc = spawn(bin, args, { stdio: 'inherit', customFds: [0, 1, 2] });
it works.
In windows the npm bin is a batch file and not JavaScript.
The text was updated successfully, but these errors were encountered: