前端项目开发过程中碰到的有意思的问题记录,持续更新…
项目安装依赖
问题一
- 问题描述
历史项目需要迭代更新,在安装依赖时报错,换源换node版本均无效
- 报错内容
git .EXE ls-remote -h -t ssh://git@github.com/************.git
- 解决方案
# 全局配置 将使用到的依赖仓库的地址git更改为https
git config --global url."https://".insteadOf git://
npm cache clean --force
npm config set registry https://registry.npmmirror.com/
npm install
# 恢复npm包地址
npm config set registry https://registry.npmjs.org/
问题
- 问题描述
- 报错内容
- 解决方案