prabina sht
prabina sht

Reputation: 217

Unable to run vue command

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

Upvotes: 0

Views: 272

Answers (1)

tony19
tony19

Reputation: 138656

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.

Upvotes: 1

Related Questions