S
S
Sergey Burduzha2017-10-17 23:15:52
Composer
Sergey Burduzha, 2017-10-17 23:15:52

Why can't I install plugins via composer in Windows?

I installed composer in Windows, in the process I specified the path to the php.exe file, which is located in D:\OpenServer\modules\php\PHP-7-x64\php.exe
Now I try to install the composer-asset-plugin and an error pops up

composer global require "fxp/composer-asset-plugin:~1.0.3"
Changed current directory to C:/Users/nicu/AppData/Roaming/Composer
./composer.json has been updated
Loading composer repositories with package information



  [Composer\Downloader\TransportException]
  The "https://packagist.org/packages.json" file could not be downloaded: failed load
  ing cafile stream: `d:/openserver/modules/php/PHP-7-x64/cacert.pem'
  Failed to enable crypto
  failed to open stream: operation failed

What should I do, where can I get the caret.perm file from?
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Timofeev, 2017-10-18
@serii81

composer is in OpenServer out of the box. Why did you install it?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question