簡體   English   中英

不安裝 composer 需要 google/cloud-firestore

[英]not install composer require google/cloud-firestore

問題

composer require google/cloud-firestore
PHP Warning:  PHP Startup: Unable to load dynamic library 'php_grpc.dll' (tried: ext\php_grpc.dll (Não foi possível encontrar o módulo especificado), ext\php_php_grpc.dll.dll (Não foi possível encontrar o módulo especificado)) in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library 'php_grpc.dll' (tried: ext\php_grpc.dll (Não foi possível encontrar o módulo especificado), ext\php_php_grpc.dll.dll (Não foi possível encontrar o módulo especificado)) in Unknown on line 0
Using version ^0.1.0 for google/cloud-firestore
./composer.json has been updated
Running composer update google/cloud-firestore
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires google/cloud-firestore ^0.1.0, found google/cloud-firestore[v0.1.0, v0.1.1] but these were not loaded, likely because it conflicts with another require.    

You can also try re-running composer require with an explicit version constraint, e.g. "composer require google/cloud-firestore:*" to figure out if any version is installable, or "composer require google/cloud-firestore:^2.1" if you know which you need.

Installation failed, reverting ./composer.json and ./composer.lock to their original content. 

您需要為 PHP 安裝並啟用gRPC 擴展,您將需要使用客戶端庫。

安裝 gRPC 擴展

sudo pecl install grpc

這會將 gRPC PHP 擴展編譯並安裝到標准的 PHP 擴展目錄中。

注:Windows用戶可直接從PECL網站下載預編譯好的gRPC。

php.ini中啟用 gRPC 擴展

extension=grpc.so

WIndows? extension=php_grpc.dll

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM