欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

sudo npm install -g @vue/cli 出错

程序员文章站 2022-03-03 17:48:54
...
npm WARN deprecated [email protected]: cross-spawn no longer requires a build toolchain, use it instead
npm ERR! path /usr/local/bin/vue
npm ERR! code EEXIST
npm ERR! Refusing to delete /usr/local/bin/vue: ../lib/node_modules/vue-cli/bin/vue symlink target is not controlled by npm /usr/local/bin
npm ERR! File exists: /usr/local/bin/vue
npm ERR! Move it away, and try again.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/ltf/.npm/_logs/2019-02-13T09_35_50_636Z-debug.log
fumatoiMac:~ ltf$ npm chache clean --force
npm WARN using --force I sure hope you know what you are doing.

1 找到/usr/local/bin/vue 这个文件然后删除,在安装;