0

I've been following a tutorial to set up a simple voting application just for experimentation purposes but after installing truffle, it seems it won't connect.

Heres the error I'm getting when I try anything with truffle

enter image description here

Literally any help is appreciated!!

1

Check the last version of Node.js that you have installed.

Older versions of Node.js (older than 7.6) does not support Async functions.

See this thread on Stackoverflow: SyntaxError: Unexpected token function - Async Await Nodejs

Check this link for more information about the different ways to upgrade Node.js

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.