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

how to run? #2

Closed
chokisoklat opened this issue Apr 17, 2018 · 1 comment
Closed

how to run? #2

chokisoklat opened this issue Apr 17, 2018 · 1 comment

Comments

@chokisoklat
Copy link

how to use this?
try to run on nodejs cli doesn't work

SyntaxError: await is only valid in async function

@p3x-robot
Copy link
Member

p3x-robot commented Apr 19, 2018

const startExec = async() => {
    // async
    try {
        /// your code here
    } catch(e) {
        console.error(e);
    }
}

startExec()

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