【发布时间】:2019-10-14 23:35:04
【问题描述】:
我安装了 vue-cli 3。我尝试使用 vue create 创建一个 vue 应用程序,但出现 no such file 错误。
~$ vue create hello-world
bash: /usr/local/bin/vue: No such file or directory
安装 vue/cli3
yarn global v0.15.1
warning No license field
[1/4] Resolving packages...
[2/4] Fetching packages...
warning fsevents@1.2.9: The platform "linux" is incompatible with this module.
info "fsevents@1.2.9" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Installed @vue/cli@3.12.0 with binaries:
- vue
Done in 1.69s.
【问题讨论】:
-
“我安装了 vue-cli 3” ????听起来不行。你是怎么安装的?
-
你安装了 vue-cli 3 global 吗?
npm install -g @vue/cli -
是的,我确实安装了 vue-cli 3