I use two Github platform. The public one at https://github.com and my work enterprise one https://github.work.com.
我使用两个Github平台。 https://github.com上的公众和我的工作企业一个https://github.work.com。
I haven't had any trouble before but I'm trying to run npm install
. The project has a package.json file which contains a dependency which is references a repository in my work in git:
我以前没有遇到任何麻烦,但我正在尝试运行npm install。该项目有一个package.json文件,其中包含一个依赖项,它引用了我在git中工作的存储库:
"my-dependency-sdk": "git+https://git@github.work.com:organization/my-dependency-sdk.git"
This is the output from the install:
这是安装的输出:
npm ERR! Error while executing:
npm ERR! /usr/local/bin/git ls-remote -h -t https://git@github.work.com/:organization/my-dependency-sdk.git
npm ERR!
npm ERR! fatal: unable to access 'https://git@github.work.com/:organization/my-dependency-sdk.git/': The requested URL returned error: 400
npm ERR!
npm ERR! exited with error code: 128
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/me/.npm/_logs/2018-04-10T17_44_59_498Z-debug.log
Is it possible that the Git installation on my Mac holds some configuration that may be pointing to the public Github and the repository I'm looking for isn't there?
我的Mac上的Git安装是否可能包含一些可能指向公共Github的配置,而我正在寻找的存储库不存在?
1 个解决方案
#1
0
The URL was incorrect. It should have been:
网址不正确。应该是:
git+https://github.work.com/organization/my-dependency-sdk.git
The format I originally used was for ssh.
我最初使用的格式是ssh。
#1
0
The URL was incorrect. It should have been:
网址不正确。应该是:
git+https://github.work.com/organization/my-dependency-sdk.git
The format I originally used was for ssh.
我最初使用的格式是ssh。