且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

npm 通过 package.json 中的依赖项安装私有 github 存储库

更新时间:2022-06-12 22:21:04

以下在我需要的所有场景中都可以正常工作:

The following worked just fine in all scenarios i needed :

"dependencies": {
"GitRepo": "git+https://<token-from-github>:x-oauth-basic@github.com/<user>/<GitRepo>.git"
}