D:\IDEA-workspace\iot\thingsboard\ui-ngx>git config --global url."https://".insteadOf git:// Rename from 'C:/Users/abc/.gitconfig.lock' to 'C:/Users/abc/.gitconfig' failed. Should I try again? (y/n) y 去掉 --global 参数成功,或者手动编辑用户目录下的 .gitconfig 文件,添加如下:
[url "https://"] insteadOf = git://
再次执行,报新错误
Output: fatal: unable to access 'https://github.com/thingsboard/flot.git/': OpenSSL SSL_read: Connection was reset, errno 10054 info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
设置不进行 https 验证
git config http.sslVerify "false"
再次执行 yarn install 即可
D:\IDEA-workspace\iot\thingsboard\ui-ngx>yarn install yarninstall v1.22.4 warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json. [1/4] Resolving packages... [2/4] Fetching packages... info fsevents@2.3.2: The platform "win32" is incompatible with this module. info "fsevents@2.3.2" is an optional dependency and failed compatibility check. Excluding it from installation. info fsevents@2.1.3: The platform "win32" is incompatible with this module. info "fsevents@2.1.3" is an optional dependency and failed compatibility check. Excluding it from installation. info fsevents@1.2.13: The platform "win32" is incompatible with this module. info "fsevents@1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation. [3/4] Linking dependencies... warning " > @material-ui/pickers@3.3.10" has unmet peer dependency "@date-io/core@^1.3.6". warning " > @ngrx/effects@10.1.2" has incorrect peer dependency "@angular/core@^10.0.0". ... [4/4] Building fresh packages... Done in221.51s.