cs-cart add при выдаче ошибки cscart-sdk не распознается

Я разработал добавление корзины CS, но когда я делаю его на молнии и пытаюсь загрузить его из gui это дает неправильную структуру данных
поэтому после небольшого исследования я понял, что должен выполнить несколько шагов, указанных в следующем URL.

https://github.com/cscart/sdk

Но после успешной установки композитора, когда я запускаю команду

cscart-sdk command:name

Это дает мне ошибку

cscart-sdk is not recognized as an internal or external command

Я очень новичок в разработке надстроек cscart

1

Решение

Кажется, что-то не так с вашей установкой композитора, пожалуйста, следуйте этому руководству (это также относится к cscart)

Installation - Linux / Unix / OSX#

Downloading the Composer Executable#

Composer offers a convenient installer that you can execute directly from the commandline. Feel free to download this file or review it on GitHub if you wish to know more about the inner workings of the installer. The source is plain PHP.

There are in short, two ways to install Composer. Locally as part of your project, or globally as a system wide executable.

Locally#

Installing Composer locally is a matter of just running the installer in your project directory. See the Download page for instructions.

The installer will just check a few PHP settings and then download composer.phar to your working directory. This file is the Composer binary. It is a PHAR (PHP archive), which is an archive format for PHP which can be run on the command line, amongst other things.

Now just run php composer.phar in order to run Composer.

You can install Composer to a specific directory by using the --install-dir option and additionally (re)name it as well using the --filename option. When running the installer when following the Download page instructions add the following parameters:

php composer-setup.php --install-dir=bin --filename=composer
Now just run php bin/composer in order to run Composer.

Globally#

You can place the Composer PHAR anywhere you wish. If you put it in a directory that is part of your PATH, you can access it globally. On unixy systems you can even make it executable and invoke it without directly using the php interpreter.

After running the installer following the Download page instructions you can run this to move composer.phar to a directory that is in your path:

mv composer.phar /usr/local/bin/composer
Note: If the above fails due to permissions, you may need to run it again with sudo.
Note: On some versions of OSX the /usr directory does not exist by default. If you receive the error "/usr/local/bin/composer: No such file or directory" then you must create the directory manually before proceeding: mkdir -p /usr/local/bin.
Note: For information on changing your PATH, please read the Wikipedia article and/or use Google.
Now just run composer in order to run Composer instead of php composer.phar.
0

Другие решения

Других решений пока нет …

По вопросам рекламы [email protected]