• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Installation CI4 - Cloning failed using an ssh key for authentication - solution

#1
I was facing a problem during a CodeIgniter 4 installation via Composer on my fully updated Linux Mint 20:
composer create-project codeigniter4/appstarter project-root

The terminal threw me an error when Composer attempted to install fzaninotto/faker and waited for a token.
Code:
- Installing fzaninotto/faker (dev-master 26c3c62): Cloning 26c3c624bb
Cloning failed using an ssh key for authentication, enter your GitHub credentials to access private repos
Head to https://github.com/settings/tokens/new?scopes=repo&description=Composer+on+computername+2020-10-26+1924
to retrieve a token. It will be stored in "/home/username/.config/composer/auth.json" for future use by Composer.
Token (hidden):

The solution for me was to close a terminal and installing a git package with it's dependencies git-man and liberror-perl. Next time a CodeIgniter 4 installation passed with no problem.

I am not the only one who had this problem:
https://github.com/composer/composer/issues/9205
Reply

#2
(10-26-2020, 11:46 AM)Muzikant Wrote: I was facing a problem during a CodeIgniter 4 installation via Composer on my fully updated Linux Mint 20:
composer create-project codeigniter4/appstarter project-root

The terminal threw me an error when Composer attempted to install fzaninotto/faker and waited for a token.
Code:
- Installing fzaninotto/faker (dev-master 26c3c62): Cloning 26c3c624bb
Cloning failed using an ssh key for authentication, enter your GitHub credentials to access private repos
Head to https://github.com/settings/tokens/new?scopes=repo&description=Composer+on+computername+2020-10-26+1924
to retrieve a token. It will be stored in "/home/username/.config/composer/auth.json" for future use by Composer.
Token (hidden):

The solution for me was to close a terminal and installing a git package with it's dependencies git-man and liberror-perl. Next time a CodeIgniter 4 installation passed with no problem.

I am not the only one who had this problem:
https://github.com/composer/composer/issues/9205


Thought I try myself on this CodeIgniter. It's my first ever, so I go the page, religiously did whatever the hell the tutorial says and voila! Michael Jackson resurrected and sang: "You are not alone, I am here with you" sonofa...

So I followed the github url thingy and created myself a token. then ok it went on and finished (and so I thought). So I tried it again by deleting the folder project-root and ran the command line again, the github didn't throw error but I got exactly the same:

[RuntimeException]
  Failed to clone https://github.com/fzaninotto/Faker.git, git was not found, check that it is installed and in your PATH env.

  'git' is not recognized as an internal or external command,
  operable program or batch file.

Seriously what the hell does that even do? How did things become so complicated that people couldn't even get past the installation? Guys you know cellphones and most things nowadays don't come with user manual right? because people, make, things, simpler! period. Come on!
Reply

#3
(01-12-2021, 09:53 AM)MrLeche Wrote: Seriously what the hell does that even do? How did things become so complicated that people couldn't even get past the installation? Guys you know cellphones and most things nowadays don't come with user manual right? because people, make, things, simpler! period. Come on!

If you know nothing about composer or git, you can still download the .zip and install CI the “old way”.
But if you think you can develop a web application without reading a single line of any user manual, good luck with that.
CodeIgniter 4 tutorials (EN/FR) - https://includebeer.com
Reply

#4
The fzaninotto/faker package is no required for app works.
Use the --no-dev key 

composer create-project codeigniter4/appstarter project-root --no-dev
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.