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

Gulp Error #68

Closed
isvictorious opened this issue Jan 28, 2018 · 2 comments
Closed

Gulp Error #68

isvictorious opened this issue Jan 28, 2018 · 2 comments

Comments

@isvictorious
Copy link

Got this error after following instructions:

design-blocks/utils/index.js:23
async function makeScreenshotsByName(name, selector) {
^^^^^^^^

SyntaxError: Unexpected token function
at createScript (vm.js:56:10)
at Object.runInThisContext (vm.js:97:10)
at Module._compile (module.js:542:28)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object. (/Users/victorramirez/Desktop/Thinkful-2017/design-blocks/gulpfile.js:8:13)

@dianaprajescu
Copy link
Contributor

@isvictorious try upgrading your Node version. Async functions are not supported by Node versions older than 7.6. node -v should show your current version.

Please let us know if this fixes your issue.

@isvictorious
Copy link
Author

Wow. I'm an idiot. Got it running. Still get an error doing 'npm run gulp' but all good if I just 'gulp'

Can't wait to contribute. Thanks

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