sudo npm install-g@vue/cliエラー

689 ワード

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というファイルを見つけて削除し、インストールします.