ThinkPHP5部署项目问题1

ThinkPHP5部署项目问题1

问题描述:

例如:在Gitee下载开源thinkPHP代码到本地 #git clone 地址 部署项目到本地打开遇到的问题错误提示如下:

Warning: require(D:\phpstudy_pro\WWW\test4\thinkphp_company\thinkphp\library\think\Loader.php): failed to open stream: No such file or directory in D:\phpstudy_pro\WWW\test4\thinkphp_company\thinkphp\base.php on line 38
Fatal error: require(): Failed opening required ‘D:\phpstudy_pro\WWW\test4\thinkphp_company\thinkphp\library\think\Loader.php’ (include_path=’.;C:\php\pear’) in D:\phpstudy_pro\WWW\test4\thinkphp_company\thinkphp\base.php on line 38

原因分析:

缺少了相关依赖性。,应该安装这些缺少的依赖。


解决方案:

在根目录下运行cmd(控制台) 输入composer update 更新相关依赖即可。
D:\phpstudy_pro\WWW\test4\thinkphp_company>composer update
Loading composer repositories with package information
Updating dependencies
Lock file operations: 21 installs, 0 updates, 0 removals
  - Locking ezyang/htmlpurifier (dev-master 3a368d7)
  - Locking maennchen/zipstream-php (2.1.0)
  - Locking markbaker/complex (2.0.3)
  - Locking markbaker/matrix (2.1.3)
  - Locking myclabs/php-enum (1.8.0)
  - Locking phpoffice/phpexcel (1.8.2)
  - Locking phpoffice/phpspreadsheet (1.15.0)
  - Locking psr/http-client (1.0.1)
  - Locking psr/http-factory (1.0.1)
  - Locking psr/http-message (1.0.1)
  - Locking psr/simple-cache (1.0.1)
  - Locking symfony/polyfill-mbstring (v1.23.0)
  - Locking topthink/framework (v5.0.24)
  - Locking topthink/think-captcha (v1.0.8)
  - Locking topthink/think-helper (v3.1.4)
  - Locking topthink/think-image (v1.0.7)
  - Locking topthink/think-installer (v1.0.14)
  - Locking topthink/think-migration (v1.1.1)
  - Locking topthink/think-mongo (v1.8.5)
  - Locking topthink/think-oracle (v1.3)
  - Locking topthink/think-queue (v1.1.6)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 21 installs, 0 updates, 0 removals
  - Downloading topthink/think-installer (v1.0.14)
  - Downloading ezyang/htmlpurifier (dev-master 3a368d7)
  - Downloading myclabs/php-enum (1.8.0)
  - Downloading phpoffice/phpexcel (1.8.2)
  - Downloading psr/simple-cache (1.0.1)
  - Downloading psr/http-message (1.0.1)
  - Downloading psr/http-factory (1.0.1)
  - Downloading psr/http-client (1.0.1)
  - Downloading markbaker/matrix (2.1.3)
  - Downloading markbaker/complex (2.0.3)
  - Downloading symfony/polyfill-mbstring (v1.23.0)
  - Downloading maennchen/zipstream-php (2.1.0)
  - Downloading phpoffice/phpspreadsheet (1.15.0)
  - Downloading topthink/framework (v5.0.24)
  - Downloading topthink/think-captcha (v1.0.8)
  - Downloading topthink/think-image (v1.0.7)
  - Downloading topthink/think-migration (v1.1.1)
  - Downloading topthink/think-mongo (v1.8.5)
  - Downloading topthink/think-oracle (v1.3)
  - Downloading topthink/think-helper (v3.1.4)
  - Downloading topthink/think-queue (v1.1.6)
  - Installing topthink/think-installer (v1.0.14): Extracting archive
  - Installing ezyang/htmlpurifier (dev-master 3a368d7): Extracting archive
  - Installing myclabs/php-enum (1.8.0): Extracting archive
  - Installing phpoffice/phpexcel (1.8.2): Extracting archive
  - Installing psr/simple-cache (1.0.1): Extracting archive
  - Installing psr/http-message (1.0.1): Extracting archive
  - Installing psr/http-factory (1.0.1): Extracting archive
  - Installing psr/http-client (1.0.1): Extracting archive
  - Installing markbaker/matrix (2.1.3): Extracting archive
  - Installing markbaker/complex (2.0.3): Extracting archive
  - Installing symfony/polyfill-mbstring (v1.23.0): Extracting archive
  - Installing maennchen/zipstream-php (2.1.0): Extracting archive
  - Installing phpoffice/phpspreadsheet (1.15.0): Extracting archive
  - Installing topthink/framework (v5.0.24): Extracting archive
  - Installing topthink/think-captcha (v1.0.8): Extracting archive
  - Installing topthink/think-image (v1.0.7): Extracting archive
  - Installing topthink/think-migration (v1.1.1): Extracting archive
  - Installing topthink/think-mongo (v1.8.5): Extracting archive
  - Installing topthink/think-oracle (v1.3): Extracting archive
  - Installing topthink/think-helper (v3.1.4): Extracting archive
  - Installing topthink/think-queue (v1.1.6): Extracting archive
File application\extra\queue.php exist!
4 package suggestions were added by new dependencies, use `composer suggest` to see details.
Package phpoffice/phpexcel is abandoned, you should avoid using it. Use phpoffice/phpspreadsheet instead.
Package topthink/think-oracle is abandoned, you should avoid using it. No replacement was suggested.
Generating autoload files
3 packages you are using are looking for funding.
Use the `composer fund` command to find out more!

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值