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

7
  • if you type vue-cli --version in the termina, what is the output ? Commented Mar 12, 2020 at 6:21
  • I got "'vue-cli' is not recognized as an internal or external command,operable program or batch file." @V.Sambor Commented Mar 12, 2020 at 6:24
  • sorry, try vue --version Commented Mar 12, 2020 at 6:25
  • What version of Node are you running? Commented Mar 12, 2020 at 6:28
  • I got same error as I posted image in the question. @V.Sambor Commented Mar 12, 2020 at 6:28

1 Answer 1

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.

Sign up to request clarification or add additional context in comments.

8 Comments

I will install node of 8.11 version
I will try and inform you. @tony19
@Kenneth The stack trace in the error message shows the async keyword usage is in Vue CLI itself.
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
How can I solve it? I uninstalled old node and reinstall again .Still I got same issue. @tony19
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.