Mac卸载vue不成功
npm install -g @vue/cli
npm uninstall -g @vue/cli
yarn global add @vue/cli
yarn global remove @vue/cli
首先确定你的是npm安装的还是yarn安装的,要用对应的卸载方式
如果还是卸载不成功,那么有以下办法
找到这些目录 进行删除
/usr/local/bin/vue-ini
/usr/local/bin/vue-list
/usr/local/bin/vue
/usr/local/lib/node_modules/vue-cli/bin/vue
/usr/local/lib/node_modules/vue-cli/bin/vue-init
/usr/local/lib/node_modules/vue-cli/bin/vue-list
Sometimes you need to applaud yourself