[Vuejs]-Trying to install MERN-Social-Network from git hub node.js version v6.10.0

0👍

Ad you said in the comments your Node.JS version is v6.10.0 unfortunately this version doesn’t support async/await functions.

You can check Here: https://node.green/#ES2017-features-async-functions

Async/await support starts from version 7.0.0 where you need to add the --harmony flag to enable ES6/ES7 features. From 7.6.0 it is supported.

So, there are multiple ways you can achieve the same result.

1) Use Promise instead of async/await
2) Use babel to transpile the code into ES5. You can do this by running the code through babel-load if you are using webpack(mostly used for frontend products)
3) You can update your node to >7.6.x

Note: If you see in the package.json of that repository you can see that it is recommended to use node>8 for this project (accorind to the author)

"engines": {
  "node": ">= 8.0.0"
},

Leave a comment