First, I checked all related questions and articles on web but couldn't find a proper solution.
I install Vue-CLI3 using npm install -g @vue/cli
and it's done with this output: @vue/cli@3.7.0
npm list -g --depth=0
command gives that output:
├── @vue/cli@3.7.0
├── eslint@5.16.0
├── jshint@2.10.2
├── npm@6.9.0
├── npx@10.2.0
└── typescript@3.4.5
When I run vue --version
it says -bash: vue: command not found
.
I tried to uninstall & reinstall Vue, but it didn't help.
I think something is missing on my bash_profile, but I don't know what to add exactly.
which vue
command doesn't return anything btw.
答案 0 :(得分:0)
我有同样的问题,我不知道为什么我缺少包裹。但是我用npm install -g pnpm
解决了。
然后您可以运行npm install -g @vue/cli
或vue --version