git was not found in your PATH (v2022)

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
Genius_Boy
User
Posts: 78

git was not found in your PATH (v2022)

Post by Genius_Boy »

hello
in my generation panel follow error happened
Is any way for run without trouble of COMPOSER?

:    Now trying to download from source
...
In GitDownloader.php line 82:
  git was not found in your PATH, skipping source download

arbei
User
Posts: 9354

Post by arbei »

Genius_Boy wrote:

In GitDownloader.php line 82:
git was not found in your PATH, skipping source download

Composer tried to download some souces by Git, you may install Git for Windows.


Genius_Boy
User
Posts: 78

Post by Genius_Boy »

git 2.31.1 was already installed on my os but I update to last version (2.37.3)
but some of modules, are not downloaded

  - Downloading soundasleep/html2text (1.1.0)
  - Downloading slim/slim (4.10.0)
  - Downloading soundasleep/html2text (1.1.0)
  - Downloading slim/slim (4.10.0)
  - Downloading soundasleep/html2text (1.1.0)
    Failed to download slim/slim from dist: curl error 28 while downloading https://api.github.com/repos/slimphp/Slim/zipball/0dfc7d2fdf2553b361d864d51af3fe8a6ad168b0: Operation timed out after 10001 milliseconds with 0 out of 0 bytes received
    Now trying to download from source
    Failed to download soundasleep/html2text from dist: curl error 28 while downloading https://api.github.com/repos/soundasleep/html2text/zipball/3243a7107878a61685d2eccf99918d6479e039fc: Operation timed out after 10001 milliseconds with 0 out of 0 bytes received
    Now trying to download from source
 38/38 [============================] 100%
In GitDownloader.php line 82:
  git was not found in your PATH, skipping source download

arbei
User
Posts: 9354

Post by arbei »

Genius_Boy wrote:

git was not found in your PATH, skipping source download

The error message still said not. You better check your environment path.You may open command prompt and type:

git --version


Genius_Boy
User
Posts: 78

Post by Genius_Boy »

git already installed. command prompt test:

C:\Windows\system32>git --version
git version 2.37.3.windows.1

My user path:
C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\150\DTS\Binn\;C:\Program Files\Microsoft SQL Server\150\DTS\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\Windows\system32\wbem;C:\Program Files (x86)\IVT Corporation\BlueSoleil\Mobile;C:\Program Files\nodejs\;C:\Program Files (x86)\Smart Projects\IsoBuster;C:\Program Files (x86)\Smart Projects\IsoBusterPro;C:\Program Files\Microsoft VS Code\bin;C:\Program Files (x86)\Print Conductor;C:\Users\GB.GB-PC\AppData\Local\Microsoft\WindowsApps;C:\Users\GB.GB-PC\AppData\Roaming\Composer\vendor\bin;C:\Users\GB.GB-PC\AppData\Roaming\npm;C:\Program Files\Git;

My system Path:
%SystemRoot%\system32\WBEM;C:\Python310\Scripts\;C:\Python310\;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\Microsoft SQL Server\150\DTS\Binn\;C:\Windows\system32\wbem;C:\Program Files (x86)\IVT Corporation\BlueSoleil\Mobile;C:\Program Files (x86)\Smart Projects\IsoBuster;C:\Program Files (x86)\Smart Projects\IsoBusterPro;C:\Program Files\Microsoft VS Code\bin;C:\Program Files (x86)\Print Conductor;C:\ProgramData\chocolatey\bin;C:\xampp2\php;C:\ProgramData\ComposerSetup\bin;C:\xampp\php;C:\Program Files\nodejs\;C:\Program Files\dotnet\;C:\Program Files (x86)\Bitvise SSH Client;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\150\DTS\Binn\;C:\Program Files\Microsoft SQL Server\150\DTS\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\Windows\system32\wbem;C:\Program Files (x86)\IVT Corporation\BlueSoleil\Mobile;C:\Program Files\nodejs\;C:\Program Files (x86)\Smart Projects\IsoBuster;C:\Program Files (x86)\Smart Projects\IsoBusterPro;C:\Program Files\Microsoft VS Code\bin;C:\Program Files (x86)\Print Conductor;C:\Users\GB.GB-PC\AppData\Local\Microsoft\WindowsApps;C:\Users\GB.GB-PC\AppData\Roaming\Composer\vendor\bin;C:\Users\GB.GB-PC\AppData\Roaming\npm;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files\Git\cmd


arbei
User
Posts: 9354

Post by arbei »

Genius_Boy wrote:

My user path:
C:\Program Files\Git;

There is no git.exe under above path, you better remove it and use your system path.


Genius_Boy
User
Posts: 78

Post by Genius_Boy »

There is no git.exe under above path, you better remove it and use your system path.

I do it

plz attention to "composer update" prompt, when I run it at my destination phpm folder:

  - Syncing athari/yalinqo (v2.4.2) into cache
Cloning failed using an ssh key for authentication, enter your GitHub credentials to access private repos
When working with _public_ GitHub repositories only, head to https://github.com/settings/tokens/new?scopes=&description=Composer+on+GB-PC+2022-10-03+0952 to retrieve a token.
This token will have read-only permission for public information only.
When you need to access _private_ GitHub repositories as well, go to https://github.com/settings/tokens/new?scopes=repo&description=Composer+on+GB-PC+2022-10-03+0952
Note that such tokens have broad read/write permissions on your behalf, even if not needed by Composer.
Tokens will be stored in plain text in "C:/Users/GB1.GB-PC2/AppData/Roaming/Composer/auth.json" for future use by Composer.
For additional information, check https://getcomposer.org/doc/articles/authentication-for-private-packages.md#github-oauth
Token (hidden):

Webmaster
User
Posts: 9427

Post by Webmaster »

If you are not using PHP 8.1, you'd better specify the last released version (i.e. "v2.4.2") under Composer Packages.

(Note: That package is out-dated and is not used by v2023.)


Post Reply