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

SyntaxError: Unexpected token #25

Closed
lovecn opened this issue Dec 17, 2018 · 3 comments
Closed

SyntaxError: Unexpected token #25

lovecn opened this issue Dec 17, 2018 · 3 comments

Comments

@lovecn
Copy link

lovecn commented Dec 17, 2018

[root@VM_0_14_centos ~]# screenshoteer  --url https://www.baidu.com
/usr/lib/node_modules/screenshoteer/index.js:33
(async () => {
       ^

SyntaxError: Unexpected token (
    at createScript (vm.js:56:10)
    at Object.runInThisContext (vm.js:97:10)
    at Module._compile (module.js:549:28)
    at Object.Module._extensions..js (module.js:586:10)
    at Module.load (module.js:494:32)
    at tryModuleLoad (module.js:453:12)
    at Function.Module._load (module.js:445:3)
    at Module.runMain (module.js:611:10)
    at run (bootstrap_node.js:394:7)
    at startup (bootstrap_node.js:160:9)

[root@VM_0_14_centos ~]# node -v
v6.14.3
[root@VM_0_14_centos ~]# npm -v
3.10.10
@vladocar
Copy link
Owner

Why do you have "#" before screenshoteer?

@lovecn
Copy link
Author

lovecn commented Dec 18, 2018

@vladocar it is just cli prompt

@vladocar
Copy link
Owner

I tried your example and it worked perfectly on my pc. Unfortunately I don't know why it doesn't work on your PC.

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