Vue command not found [duplicate]

2020-02-23 07:28发布

Trying to install Vue, but I am getting an error -bash: vue: command not found.

Everything is installed per Vue instructions and I'm not sure why I am getting this issue.

Thanks in advance!

Screenshot of an error

2条回答
叛逆
2楼-- · 2020-02-23 07:59

Try updating your PATH variable with this command:

export PATH=$PATH:/Users/denis/.npm-global/bin

Updating Node/NPM might help too.

查看更多
该账号已被封号
3楼-- · 2020-02-23 08:05

It is better to uninstall the Vue with the command: npm uninstall -g @vue/cli and then install again.

查看更多
登录 后发表回答