npm install -g @vue/cli

遇到 npm ERR! errno -17

 


➜  chapter3 npm install -g @vue/cli

npm WARN deprecated core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.

npm ERR! code EEXIST

npm ERR! syscall symlink

npm ERR! path ../lib/node_modules/@vue/cli/bin/vue.js

npm ERR! dest /usr/local/bin/vue

npm ERR! errno -17

npm ERR! EEXIST: file already exists, symlink '../lib/node_modules/@vue/cli/bin/vue.js' -> '/usr/local/bin/vue'

npm ERR! File exists: /usr/local/bin/vue

npm ERR! Remove the existing file and try again, or run npm

npm ERR! with --force to overwrite files recklessly.



npm ERR! A complete log of this run can be found in:

 

原来安装vue的版本过低:

npm install -g @vue/cli --force  可以强制覆盖

 

 

 

2 npm安装vue-cli时速度慢,速度慢

https://blog.csdn.net/MyWoodStream/article/details/82585401

 

 

Logo

前往低代码交流专区

更多推荐