问题记录 在配置好vue项目后,中途想要添加新的组件npm install或者更新npm update时,执行会报错 解决方案 在项目目录下 npm config set legacy-peer-deps=true --location=project