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:
Asked
Active
Viewed 219 times
0

tony19
- 125,647
- 18
- 229
- 307

prabina sht
- 217
- 3
- 12
-
if you type `vue-cli --version` in the termina, what is the output ? – V. Sambor Mar 12 '20 at 06:21
-
I got "'vue-cli' is not recognized as an internal or external command,operable program or batch file." @V.Sambor – prabina sht Mar 12 '20 at 06:24
-
sorry, try `vue --version` – V. Sambor Mar 12 '20 at 06:25
-
What version of Node are you running? – tony19 Mar 12 '20 at 06:28
-
I got same error as I posted image in the question. @V.Sambor – prabina sht Mar 12 '20 at 06:28
-
node version v6.10.3 @tony19 – prabina sht Mar 12 '20 at 06:29
-
Please help me. I'm trying to solve it since few days .@tony19 – prabina sht Mar 12 '20 at 06:29
1 Answers
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.
-
-
-
@Kenneth The stack trace in the error message shows the `async` keyword usage is in Vue CLI itself. – tony19 Mar 12 '20 at 07:09
-
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 Mar 12 '20 at 07:16
-
How can I solve it? I uninstalled old node and reinstall again .Still I got same issue. @tony19 – prabina sht Mar 12 '20 at 07:18
-
I downloaded node from https://nodejs.org/en/ and installed it. Then from Control Panel\All Control Panel Items\Programs and Features , I uninstall it. @tony19 – prabina sht Mar 12 '20 at 07:22
-
I uninstalled node but when i see the node version, it still show me the same version. @tony19 – prabina sht Mar 12 '20 at 07:29
-
https://stackoverflow.com/questions/20711240/how-to-completely-remove-node-js-from-windows – tony19 Mar 12 '20 at 07:37