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:
1 Answer
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.
8 Comments
prabina sht
I will install node of 8.11 version
prabina sht
I will try and inform you. @tony19
tony19
@Kenneth The stack trace in the error message shows the
async keyword usage is in Vue CLI itself.prabina sht
I downloaded the node js from the link given by you and I installed it. But when I run node --version , I got v6.10.3. @tony19
prabina sht
How can I solve it? I uninstalled old node and reinstall again .Still I got same issue. @tony19
|

vue-cli --versionin the termina, what is the output ?vue --version