无法 运行 vue 命令
Unable to run vue command
我正在 运行 Windows 命令提示符下尝试 vue
命令。
我使用命令 npm install -g @vue/cli
安装了 Node,然后安装了 Vue CLI,但是当我 运行 vue create test
时,我看到一个错误。我重新安装了 Node 和 @vue/cli
,但这没有用。这是错误:
Vue CLI 需要 Node 8.9+,如 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.
该错误表示 async
关键字的语法错误,旧版本的 Node 不支持该关键字。
我正在 运行 Windows 命令提示符下尝试 vue
命令。
我使用命令 npm install -g @vue/cli
安装了 Node,然后安装了 Vue CLI,但是当我 运行 vue create test
时,我看到一个错误。我重新安装了 Node 和 @vue/cli
,但这没有用。这是错误:
Vue CLI 需要 Node 8.9+,如 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.
该错误表示 async
关键字的语法错误,旧版本的 Node 不支持该关键字。