在 CLI 上使用编辑器安装时"Class...not found"致命错误



我正在为 Laravel 4 安装作曲家,在 CLI 上按 composer install 并按 Enter 时,我收到以下错误/警告:`

F:My DocumentsWAMPwwwlaravel-master>composer install
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. Run update to u
pdate them.
Nothing to install or update
Generating autoload files
PHP Fatal error:  Class 'IlluminateFoundationProvidersConsoleSupportServiceProvider' not found in F:My DocumentsWAMPwwwlaravel-master
vendorlaravelframeworksrcIlluminateFoundationProviderRepository.php on line 123
PHP Stack trace:
PHP   1. {main}() F:My DocumentsWAMPwwwlaravel-masterartisan:0
PHP   2. require_once() F:My DocumentsWAMPwwwlaravel-masterartisan:30
PHP   3. require() F:My DocumentsWAMPwwwlaravel-masterbootstrapstart.php:60
PHP   4. IlluminateFoundationProviderRepository->load() F:My DocumentsWAMPwwwlaravel-mastervendorlaravelframeworksrcIlluminateFo
undationstart.php:195
PHP   5. IlluminateFoundationProviderRepository->compileManifest() F:My DocumentsWAMPwwwlaravel-mastervendorlaravelframeworksrcIl
luminateFoundationProviderRepository.php:51
PHP   6. IlluminateFoundationProviderRepository->createProvider() F:My DocumentsWAMPwwwlaravel-mastervendorlaravelframeworksrcIll
uminateFoundationProviderRepository.php:89
{"error":{"type":"Symfony\Component\Debug\Exception\FatalErrorException","message":"Class 'Illuminate\Foundation\Providers\ConsoleSup
portServiceProvider' not found","file":"F:\My Documents\WAMP\www\laravel-master\vendor\laravel\framework\src\Illuminate\Foundation
\ProviderRepository.php","line":123}}Script php artisan clear-compiled handling the post-install-cmd event returned with an error

  [RuntimeException]
  Error Output: PHP Fatal error:  Class 'IlluminateFoundationProvidersConsoleSupportServiceProvider' not found in F:My DocumentsWAMP
  wwwlaravel-mastervendorlaravelframeworksrcIlluminateFoundationProviderRepository.php on line 123
  PHP Stack trace:
  PHP   1. {main}() F:My DocumentsWAMPwwwlaravel-masterartisan:0
  PHP   2. require_once() F:My DocumentsWAMPwwwlaravel-masterartisan:30
  PHP   3. require() F:My DocumentsWAMPwwwlaravel-masterbootstrapstart.php:60
  PHP   4. IlluminateFoundationProviderRepository->load() F:My DocumentsWAMPwwwlaravel-mastervendorlaravelframeworksrcIllumina
  teFoundationstart.php:195
  PHP   5. IlluminateFoundationProviderRepository->compileManifest() F:My DocumentsWAMPwwwlaravel-mastervendorlaravelframeworks
  rcIlluminateFoundationProviderRepository.php:51
  PHP   6. IlluminateFoundationProviderRepository->createProvider() F:My DocumentsWAMPwwwlaravel-mastervendorlaravelframeworksr
  cIlluminateFoundationProviderRepository.php:89


install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-scripts] [--no-progre
ss] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [packages1] ... [packagesN]

可能是什么问题?我尝试在谷歌上到处搜索,但没有成功。

我成功了。 这就是我所做的: 1. 我在 WAMP 的 bin/apache 和 bin/php 文件夹中的 2 个 php.ini 文件上启用了 openssl。2. 我最初使用带有代理的互联网。我切换到调制解调器,我的困境结束了。这是成功的主要原因。我希望这一切都对某人有所帮助

相关内容

最新更新