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.

SyntaxError crash

See original GitHub issue

Hi, I’m getting a SyntaxError crash when running vtop, the error message is as follows:

evalmachine.<anonymous>:2
vtop@0.5.7 | MIT | deps: 10 | versions: 47
^

SyntaxError: Invalid or unexpected token
    at new Script (vm.js:74:7)
    at createScript (vm.js:246:10)
    at Object.runInNewContext (vm.js:291:10)
    at safeEval (/usr/lib/node_modules/vtop/node_modules/safe-eval/index.js:13:6)
    at /usr/lib/node_modules/vtop/upgrade.js:25:24
    at ChildProcess.exithandler (child_process.js:273:7)
    at ChildProcess.emit (events.js:182:13)
    at maybeClose (internal/child_process.js:947:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:236:5)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:30
  • Comments:15 (5 by maintainers)

github_iconTop GitHub Comments

8reactions
williambomancommented, May 30, 2018

🤔…

Anyways, for now I’ve published vtop-node10 which includes #123 and thus support for node@10/npm@6. To install:

$ npm uninstall -g vtop
$ npm install -g vtop-node10
$ vtop
5reactions
vinklacommented, May 7, 2018

I’m having the same issue on latest version of macOS 10.13.4, Node.js 10.0.0 and npm 6.0.0.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Startup crash: "SyntaxError: Unexpected end of JSON input"
A JavaScript error occurred in the main process Uncaught Exception: SyntaxError: Unexpected end of JSON input at JSON.parse (<anonymous>) at ...
Read more >
NextJS 12 Runtime Crash - SyntaxError: Unexpected token
So the problem was due to an internal cleaning process we run and a change in the way Next 12 prints the source...
Read more >
SyntaxError: JSON.parse: bad parsing - JavaScript | MDN
The JavaScript exceptions thrown by JSON.parse() occur when string failed to be parsed as JSON.
Read more >
A Syntax Error Led to Crashing of KmsdBot Cryptomining Botnet
According to researchers, a syntax error caused it to stop sending commands, which destroyed the botnet. What is KmsdBot? Named by Akamai ...
Read more >
Syntax error crashes entire WP site
My site had crashed totally and most likely this plugin was the cause. The admin-page.php file had a syntax error on line 18,...
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