npm ERR! Refusing to install package with name "vuex" under a package
npm ERR! also called "vuex". Did you name your project the same
npm ERR! as the dependency you're installing?
把ERR连起来看:Refusing to install package with name “vuex” under a package also called “vuex”.
Did you name your project the same as the dependency you’re installing?
意思就是项目package 的name和 你准备npm install vuex相同,所以报错
解决方法:进入package把name修改即可