【问题标题】:Laravel skips installation and Could not scan for classes insideLaravel 跳过安装并且无法扫描里面的类
【发布时间】:2019-10-21 19:05:30
【问题描述】:

我有一个使用 laravel homestead 在 mac book 中运行的项目 Laravel 5.6
Virtualbox 5.2
节点 js 版本 10.8.0

git clone https://github.com/laravel/homestead.git ~/Homestead
cd ~/Homestead
git checkout v7.16.1

作曲家 1.8.5

相同的设置适用于任何手册
但是当我尝试在 Windows 中安装所有软件时
一切正常除了

当我试图在我的项目目录中的宅基地内运行 composer install
我收到以下错误

Skipped installation of bin bin/doctrine-dbal for package doctrine/dbal: file not found in package  
Skipped installation of bin Resources/bin/var-dump-server for package symfony/var-dumper: file not found in package    
Skipped installation of bin bin/php-parse for package nikic/php-parser: file not found in package  

安装失败,正在将 ./composer.json 还原为其原始内容。

  [RuntimeException]
  Could not scan for classes inside "/home/vagrant/sites/emsadmin/vendor/sebastian/object-enumerator/src/" which does
   not appear to be a file nor a folder

我在 npm run watch

中也遇到了错误

我尝试了很多命令,但没有运气

【问题讨论】:

  • 尝试删除您的vendor 文件夹,然后执行composer install
  • 尝试了这么多时间......这么多事情形成了 2 天没有运气
  • 是否与网络或缓存或操作系统更改问题有关?
  • 我只在从mac切换到windows10时遇到这个问题

标签: node.js laravel composer-php laravel-5.6 homestead


【解决方案1】:

更新您的 Homestead、Vagrant,最重要的是更新到 VirtualBox(到 v6)。我有另一个副作用的相同问题,更新到 VirtualBox v6 为我解决了这个问题。

请参阅此 GitHub 问题。 https://github.com/laravel/homestead/issues/1219

【讨论】:

    猜你喜欢
    • 2014-12-26
    • 2015-06-08
    • 1970-01-01
    • 1970-01-01
    • 2015-10-26
    • 2014-08-12
    • 1970-01-01
    • 2014-10-26
    • 1970-01-01
    相关资源
    最近更新 更多