Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby bundle命令提示github登录,该登录不';行不通_Ruby_Git_Github_Rubygems_Bundler - Fatal编程技术网

Ruby bundle命令提示github登录,该登录不';行不通

Ruby bundle命令提示github登录,该登录不';行不通,ruby,git,github,rubygems,bundler,Ruby,Git,Github,Rubygems,Bundler,当我运行bundle时,我得到以下信息: $ bundle Following files may not be writable, so sudo is needed: /Library/Ruby/Gems/2.3.0 /Library/Ruby/Gems/2.3.0/build_info /Library/Ruby/Gems/2.3.0/cache /Library/Ruby/Gems/2.3.0/doc /Library/Ruby/Gems/2.3.0/extensio

当我运行bundle时,我得到以下信息:

$ bundle
Following files may not be writable, so sudo is needed:
  /Library/Ruby/Gems/2.3.0
  /Library/Ruby/Gems/2.3.0/build_info
  /Library/Ruby/Gems/2.3.0/cache
  /Library/Ruby/Gems/2.3.0/doc
  /Library/Ruby/Gems/2.3.0/extensions
  /Library/Ruby/Gems/2.3.0/gems
  /Library/Ruby/Gems/2.3.0/specifications
Fetching https://github.com/lsegal/yard.git
Fetching https://github.com/lsegal/yard-js.git
Fetching https://github.com/lsegal/parsejs.git
Username for 'https://github.com': me
Password for 'https://me@github.com': 
remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/lsegal/parsejs.git/'

Retrying `git clone 'https://github.com/lsegal/parsejs.git' "/Users/me/.bundle/cache/git/parsejs-35f0b5a29373e174672dd4f95a4392093a2ddf51" --bare --no-hardlinks --quiet` due to error (2/4): Bundler::Source::Git::GitCommandError Git error: command `git clone 'https://github.com/lsegal/parsejs.git' "/Users/me/.bundle/cache/git/parsejs-35f0b5a29373e174672dd4f95a4392093a2ddf51" --bare --no-hardlinks --quiet` in directory /Users/paulcarron/git/ibm-cos-sdk-js has failed.
Username for 'https://github.com': me
Password for 'https://me@github.com': 
remote: Repository not found.
fatal: repository 'https://github.com/lsegal/parsejs.git/' not found

Retrying `git clone 'https://github.com/lsegal/parsejs.git' "/Users/me/.bundle/cache/git/parsejs-35f0b5a29373e174672dd4f95a4392093a2ddf51" --bare --no-hardlinks --quiet` due to error (3/4): Bundler::Source::Git::GitCommandError Git error: command `git clone 'https://github.com/lsegal/parsejs.git' "/Users/me/.bundle/cache/git/parsejs-35f0b5a29373e174672dd4f95a4392093a2ddf51" --bare --no-hardlinks --quiet` in directory /Users/paulcarron/git/ibm-cos-sdk-js has failed.
Username for 'https://github.com':

我使用相同的用户名通过浏览器登录到GitHub,所以不知道发生了什么。有人能帮忙吗?

您需要创建一个Github令牌,以便通过命令行API进行访问。转到并创建一个新令牌

我不能完全确定你需要哪一套。我给了自己
repo
(全部),
写:包
读:包
,和
工作流
,因为这就是我想要的令牌。我的猜测是,
read:packages
就足够了

然后,您可以在bundle提示时提供正常的Github用户名和这个新令牌