To create a virtual server I use MAMP, and as an ATOM code editor.

shifted the HTDOCS folder and installed the Platformio-IDE-Terminal terminal in Atom. I start installing Composer directly in the terminal itself, as the following errors are given:

php: the name "PHP" is not recognized as the name of the cmdlet, functions, script file or executable programs. Check the correctness of the name, as well as the presence and correctness of the path, Watch you try again. Row: 1 Sign: 1

  • php -r "Copy ('https://getcomposer.org/installer', 'composer-setup.php ...
  • + CategoryInfo: ObjectNotFound: (PHP: String) [], CommandNotFoundException
      + FullyQualifiederrorid: CommandNotFoundException

Comparser commands used the following:

php -r "Copy ('https://getcomposer.org/installer', 'composer-setup.php');"

php -r "if (hash_file ( 'sha384', 'composer-setup.php')=== '756890a4488ce9024fc62c56153228907f1545c228516cbf63f885e036d37e9a59d27d63f46af1d4d07ee0f76181c7d3') {echo 'Installer verified';} else {echo 'Installer corrupt'; unlink ( 'composer -setup.php ');} echo php_eol; "

php composer-setup.php

php -r "unlink ('composer-setup.php');"

Please explain the problem itself and help find a solution.

Is PHP itself globally installed on your machine? Open the terminal and write PHP -V

Simon2021-09-16 15:03:41

Entered, the same error. PHP himself only attempted to install, the path indicated the path directly to the PHP folder itself. I tried again -everything is in vain.

Вальдемар2021-09-16 15:14:45

What other php folder, with your code? If you are working with XAMPP /MAMP and others, use their console to start the PHP executable file, and not a third-party or system console as they set up your OS and the path to it.

Daniel Protopopov2021-09-16 16:05:37

Oh, it was necessary, I had to install a componrenchly directly without puff

Николай2021-09-16 16:15:37

Nikolai, thanks for the advice, you probably have to solve the problem. And another way some exist? Have you decided this problem?

Вальдемар2021-09-16 20:06:13