vue项目执行npm install 出现下属问题
npm ERR! path D:\ProjectDemo\renren-fast-vue\node_modules\.bin\gulp.cmd
npm ERR! code EEXIST
npm ERR! Refusing to delete D:\ProjectDemo\renren-fast-vue\node_modules\.bin\gulp.cmd: is outside D:\ProjectDemo\renren-fast-vue\node_modules\gulp and not a link
npm ERR! File exists: D:\ProjectDemo\renren-fast-vue\node_modules\.bin\gulp.cmd
npm ERR! Move it away, and try again.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\nanyi\AppData\Roaming\npm-cache\_logs\2021-09-17T08_58_23_413Z-debug.l
解决方案:
先执行:
npm config set electron_mirror "https://npm.taobao.org/mirrors/electron/"
重新安装:
npm install