Vue.js “如何修复错误”;没有此类文件或目录错误";使用vue cli创建
我安装了vue cli 3。我尝试使用vue create创建vue应用程序,但没有收到这样的文件错误Vue.js “如何修复错误”;没有此类文件或目录错误";使用vue cli创建,vue.js,vue-cli-3,Vue.js,Vue Cli 3,我安装了vue cli 3。我尝试使用vue create创建vue应用程序,但没有收到这样的文件错误 ~$ 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
~$ 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.
我希望这对某些人有所帮助,但同样的情况也发生在我身上,我只是在尝试使用终端之前重新启动了它。我的意思是,使用
npm I-g@vue/cli安装vue cli后,请重新启动终端或使用类似以下内容更新源代码:source~/.bash_profile
(或者只需重新启动终端,更容易),以便更新配置文件中的路径:)。这为我解决了问题。我希望这对某人有所帮助,但同样的情况也发生在我身上,我只是在尝试使用终端之前重新启动了终端。我的意思是,使用npm I-g@vue/cli安装vue cli后,请重新启动终端或使用类似以下内容更新源代码:source~/.bash_profile
(或者只需重新启动终端,更容易),以便更新配置文件中的路径:)。这为我解决了问题。在使用npm i-g@vue/cli安装vue cli并使用类似于source~/.profile或(~/.bash\u profile)的内容更新源代码之后。这对我很有效。在使用npm i-g@vue/cli安装vue cli并使用类似于source~/.profile或(~/.bash\u profile)的内容更新源代码之后。这对我很有用。“我安装了vue cli 3”您是否安装了vue cli 3 global<代码>npm安装-g@vue/cli
是我安装了vue cli 3“我安装了vue cli 3”您安装了vue cli 3全局吗<代码>npm安装-g@vue/cli
是的,我确实安装了vue cli 3