question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

error, Unexpected token case. (windows)

See original GitHub issue

I am trying to use electron rebuild on windows (10 , x64), running node 4.1.0. But when I run the command specified in the documentation

./node_modules/.bin/electron-rebuild

I get the following error

F:\app\node_modules.bin\electron-rebuild:4 case uname in ^^^^

SyntaxError: Unexpected token case at exports.runInThisContext (vm.js:53:16) at Module._compile (module.js:413:25) at Object.Module._extensions…js (module.js:452:10) at Module.load (module.js:355:32) at Function.Module._load (module.js:310:12) at Function.Module.runMain (module.js:475:10) at startup (node.js:117:18) at node.js:951:3

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:13 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
anaisbettscommented, Oct 22, 2015

@alexandrubau Drop the node from the front

1reaction
anaisbettscommented, Sep 22, 2015

node .\node_modules\.bin\electron-rebuild should do it

Read more comments on GitHub >

github_iconTop Results From Across the Web

error, Unexpected token case. (windows) · Issue #22 - GitHub
I am trying to use electron rebuild on windows (10 , x64), running node 4.1.0. But when I run the command specified in...
Read more >
SyntaxError: Unexpected token case (SOLVED!) - Codecademy
Hi. I am having some problems with my code, because it says *"SyntaxError: Unexpected token case"*. I can't find out where my problem...
Read more >
Uncaught Syntax Error - Unexpected Token case.
JavaScript throws Uncaught Syntax Error: unexpected token (case from switch statement) · onclick="JavaScript:addFunction()" What tutorial or ...
Read more >
Help with error: Unexpected token in expression or statement
Hi,. For days the following line in my code worked, with all variables containing valid data. Im just concatenting variables:.
Read more >
SyntaxError: Unexpected token - JavaScript - MDN Web Docs
The JavaScript exceptions "unexpected token" occur when a specific language construct was expected, but something else was provided.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found