安装vue-cli
来源:7-1 vue项目安装

慕工程6070295
2020-03-23
安装vue-cli 报这些 也在网上查了 还是不行
npm WARN deprecated mkdirp@0.5.3: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
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/admin/.npm/_logs/2020-03-23T06_53_28_303Z-debug.log
1回答
-
慕粉1926294646
2020-03-25
同学你好,安装 vue-cli 用的是 sudo 权限吗?可以尝试 sudo npm install -g @vue/cli,如果还不行,就手动删除 /usr/local/bin/vue
00
相似问题