欢迎阅读『Tag标签列表』

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
posted @ 2021-05-15 18:24  兔子零-A酱  阅读(518)  评论(0编辑  收藏  举报