简体   繁体   English

Google Calendar API vendor / autoload.php:打开流失败

[英]Google Calendar API vendor/autoload.php: failed to open stream

I'm working with Google Calendar and their PHP tutorial . 我正在使用Google Calendar及其PHP教程 I followed all the instructions to the letter however at the part where it says to run it from the console/command line I get this obvious error: 我遵循了这封信的所有说明,但是在从控制台/命令行运行该信的那部分,我得到了一个明显的错误:

Warning: require(D:\\htdocs\\test/vendor/autoload.php): failed to open stream: No such file or directory in D:\\htdocs\\test\\quickstart.php on line 4 警告:require(D:\\ htdocs \\ test / vendor / autoload.php):无法打开流:第4行的D:\\ htdocs \\ test \\ quickstart.php中没有此类文件或目录

There is no vendor/autoload.php file in the tutorial nor on the Github repository . 本教程中和Github存储库中都没有vendor/autoload.php文件。

Where do I find the autoload.php file and why do they insist on requiring it but not providing it? 我在哪里可以找到autoload.php文件,为什么他们坚持要求但不提供文件?

You need to run composer in the directory of your project. 您需要在项目目录中运行composer。 For eq : 对于eq:

cd D:\htdocs\test\
composer require google/apiclient:^2.0

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 要求(供应商/autoload.php):无法打开 stream:没有这样的文件或目录 - require(vendor/autoload.php): failed to open stream: No such file or directory require(vendor/autoload.php): 无法打开 stream - require(vendor/autoload.php): failed to open stream Lumen无法打开/../vendor/autoload.php - Lumen failed to open /../vendor/autoload.php 警告:require(/home/eg./public_html/mydata /../ vendor / autoload.php):无法打开流: - Warning: require(/home/eg./public_html/mydata/../vendor/autoload.php): failed to open stream: 要求(项目/供应商/predis/predis/autoload.php):无法打开stream:没有这样的文件或目录 - require(project/vendor/predis/predis/autoload.php): Failed to open stream: No such file or directory 为什么我找不到 Google 日历 API 的 vendor/autoload.php? - Why I can't find vendor/autoload.php for Google Calendar API? 打开失败需要'../vendor/autoload.php' - Failed opening required '../vendor/autoload.php' Laravel 4 bootstrap / autoload.php无法打开流 - Laravel 4 bootstrap/autoload.php failed to open stream 无法打开流autoload.php Facebook SDK v4 - Failed to open stream autoload.php Facebook SDK v4 /autoload.php):无法打开流: - /autoload.php): failed to open stream: No such file or directory in
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM