anxios安装失败,报错npm ERR! Refusing to delete / code EEXIST
解决办法:重装npm,
cd %ProgramFiles%\nodejs
ren npm.cmd npm2.cmd
ren npm npm2
npm2 install npm@latest -g
del npm2
del npm2.cmd`
具体解决方案参照(https://stackoverflow.com/questions/46541371/npm-err-refusing-to-delete-code-eexist)
成功安装axios后启动项目发生报错
ERROR Failed to compile with 5 errors 12:17:13 AM
These relative modules were not found:
* ./Swiper.vue?vue&type=style&index=0&id=09b748f6&scoped=true&lang=stylus& in ./src/pages/home/components/Swiper.vue
* ./Header.vue?vue&type=style&index=0&id=5558831a&scoped=true&lang=stylus& in ./src/pages/home/components/Header.vue
* ./Icons.vue?vue&type=style&index=0&id=41b3099d&lang=stylus&scoped=tr