"无法打开流"试图安装AsgardCMS

时间:2015-09-24 15:21:12

标签: php .htaccess

我正在尝试安装AsgardCMS,并按照文档中的说明进行操作。 1. composer create-project asgardcms/platform your-project-name 2。 php artisan asgard:install。但是当我输入第二个命令时,我得到了这个错误

Warning: require(C:\xampp\htdocs\amit\asgard\bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in C:\xampp\htdocs\amit\asgard\bootstrap\autoload.php on line 17

Fatal error: require(): Failed opening required 'C:\xampp\htdocs\amit\asgard\bootstrap/../vendor/autoload.php' (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\amit\asgard\bootstrap\autoload.php on line 17

我认为这是由于缺少.htaccess但我不熟悉我应该写什么。我试过

<IfModule mod_rewrite.c>
    RewriteEngine On

    RewriteRule ^(.*)$ public/$1 [L]
</IfModule>

但它不起作用。

1 个答案:

答案 0 :(得分:1)

It looks like composer doesn't require all its dependencies. You can re-run composer install to get those again.