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 这个文件然后删除,在安装;
推荐阅读
-
npm install @vue-cli 安装报错
-
npm install -g @vue/cli 报错
-
问题:npm install -g @vue/cli 报错
-
sudo npm install fecs -g 报错
-
多人共用ubuntu系统,sudo npm install -g 出现rollbackfailed
-
vue: command not found npm install -g @vue/cli
-
执行 npm install -g @vue/cli 报错
-
npm WARN deprecated @hapi/[email protected]: Switch to ‘npm install joi‘ npm install -g @vue/cli 出错
-
npm install -g hey-cli报错npm WARN deprecated [email protected]: [email protected]<3 is no longer
-
npm install -g angular/cli error: Unsupported platform for [email protected]