0

I'm trying run the vue command on the Windows command prompt. I installed Node and then Vue CLI by using command npm install -g @vue/cli, but when I run vue create test, I see an error. I reinstalled Node and @vue/cli, but that didn't work. Here's the error:

screenshot

tony19
  • 125,647
  • 18
  • 229
  • 307
prabina sht
  • 217
  • 3
  • 12

1 Answers1

1

Vue CLI requires Node 8.9+, as stated in the docs:

Node Version Requirement

Vue CLI requires Node.js version 8.9 or above (8.11.0+ recommended). You can manage multiple versions of Node on the same machine with nvm or nvm-windows.

The error indicates a syntax error for the async keyword, which is not supported in older versions of Node.

Community
  • 1
  • 1
tony19
  • 125,647
  • 18
  • 229
  • 307