启动服务的时候就出现了这个问题,求各路大神给指点一下~

D:\wamp\www\sot>php artisan serve
{"error":{"type":"ErrorException","message":"file_put_contents(\/meta\/services.
json): failed to open stream: No such file or directory","file":"D:\wamp\www\
sot\bootstrap\compiled.php","line":4158}}

提示这里有问题,然后我看了下那个文件。
public function put($path, $contents)
{
return file_put_contents($path, $contents);
}
这是 第4158行的内容,不知道该如何操作啊。求指点。

我把composer给 update了一下,执行到最后还是 出现 这个错误。

D:\wamp\www\sot>composer update
Warning: This development build of composer is over 30 days old. It is recommend
ed to update it by running "C:\ProgramData\ComposerSetup\bin\composer.phar self-
update" to get the latest version.
Loading composer repositories with package information
Updating dependencies (including require-dev)
- Removing symfony/translation (v2.5.4)
- Installing symfony/translation (v2.5.8)
Downloading: 100%
  • Removing symfony/security-core (v2.5.4)
  • Installing symfony/security-core (v2.5.8)
    Downloading: 100%
  • Removing symfony/routing (v2.5.4)
  • Installing symfony/routing (v2.5.8)
    Downloading: 100%
  • Removing symfony/process (v2.5.4)
  • Installing symfony/process (v2.5.8)
    Downloading: 100%
  • Removing symfony/http-foundation (v2.5.4)
  • Installing symfony/http-foundation (v2.5.8)
    Downloading: 100%
  • Removing symfony/event-dispatcher (v2.5.4)
  • Installing symfony/event-dispatcher (v2.6.1)
    Downloading: 100%
  • Removing symfony/debug (v2.5.4)
  • Installing symfony/debug (v2.5.8)
    Downloading: 100%
  • Removing symfony/http-kernel (v2.5.4)
  • Installing symfony/http-kernel (v2.5.8)
    Downloading: 100%
  • Removing symfony/finder (v2.5.4)
  • Installing symfony/finder (v2.5.8)
    Downloading: 100%
  • Removing symfony/dom-crawler (v2.5.4)
  • Installing symfony/dom-crawler (v2.5.8)
    Downloading: 100%
  • Removing symfony/css-selector (v2.5.4)
  • Installing symfony/css-selector (v2.5.8)
    Downloading: 100%
  • Removing symfony/console (v2.5.4)
  • Installing symfony/console (v2.5.8)
    Downloading: 100%
  • Removing symfony/browser-kit (v2.5.4)
  • Installing symfony/browser-kit (v2.5.8)
    Downloading: 100%
  • Removing swiftmailer/swiftmailer (v5.2.1)
  • Installing swiftmailer/swiftmailer (v5.3.1)
    Downloading: 100%
  • Removing stack/builder (v1.0.2)
  • Installing stack/builder (v1.0.3)
    Downloading: 100%
  • Removing phpseclib/phpseclib (0.3.7)
  • Installing phpseclib/phpseclib (0.3.9)
    Downloading: 100%
  • Removing patchwork/utf8 (v1.1.25)
  • Installing patchwork/utf8 (v1.1.26)
    Downloading: 100%
  • Removing nesbot/carbon (1.11.0)
  • Installing nesbot/carbon (1.13.0)
    Loading from cache
  • Removing monolog/monolog (1.10.0)
  • Installing monolog/monolog (1.11.0)
    Loading from cache
  • Removing filp/whoops (1.1.2)
  • Installing filp/whoops (1.1.3)
    Loading from cache
  • Removing ircmaxell/password-compat (1.0.3)
  • Installing ircmaxell/password-compat (v1.0.4)
    Downloading: 100%
  • Removing symfony/filesystem (v2.5.4)
  • Installing symfony/filesystem (v2.6.1)
    Downloading: 100%
  • Removing laravel/framework (v4.2.8)
  • Installing laravel/framework (v4.2.13)
    Downloading: 100%

Writing lock file
Generating autoload files
{"error":{"type":"ErrorException","message":"file_put_contents(\/meta\/services.
json): failed to open stream: No such file or directory","file":"D:\wamp\www\
sot\bootstrap\compiled.php","line":4158}}{"error":{"type":"ErrorException","me
ssage":"file_put_contents(\/meta\/services.json): failed to open stream: No such
file or directory","file":"D:\wamp\www\sot\bootstrap\compiled.php","line":
4158}}
741.jpg 1725.jpg
已邀请:

墨墨向北

赞同来自:

我以前也遇到这种提示 是你自己写的代码错了 和框架的代码没什么关系

要回复问题请先登录注册