vue-element-admin icon indicating copy to clipboard operation
vue-element-admin copied to clipboard

为什么安装依赖一定要在github添加SSH

Open cs714156284 opened this issue 2 years ago • 1 comments

Question(提问)

想请教为什么安装依赖一定要在github添加SSH, 是否能在哪个文件更改这一设置。

Steps to reproduce(问题复现步骤)

  1. 下载了项目压缩包到公司电脑
  2. 公司只能访问内网, 内网npm仓库有相关所需依赖
  3. npm i 报错 “ssh:connect to host github.com port 22: Connection timed out ...”, 在自己电脑安装时也遇到了, 通过在github添加SSH解决, 但在内网无法连接github
  4. git init连接公司内部gitee仓库也无法解决

Other relevant information(格外信息)

  • Your OS: window 10
  • Node.js version: 12.18.2
  • vue-element-admin version: 4.4.0

cs714156284 avatar Apr 15 '22 03:04 cs714156284

可能是因为某个包有依赖的链接,是直接指向github的某个地址的

chengkai2022 avatar Apr 22 '22 03:04 chengkai2022