安装M2 报错Class 'Cli' not found

4.62K 浏览M2交流区

安装M2 报错Class 'Cli' not found

/var/www/magento2下:
运行命令:

php bin/magento setup:install --backend-frOntname="adminlogin" --key="65b07bf53f4d7ee8f4b884c102e5ee62" --base-url="http://magento2demo.texiaoyao.cn" --base-url-secure="https://magento2demo.texiaoyao.cn" --db-host=localhost --db-name=magento2 --db-user=magento_user --db-password=&#39;<a href="/cdn-cgi/l/email-protection" class="__cf_email__">[email&#160;protected]</a>$wEw*d8&#39; --admin-firstname=Zou  --admin-lastname=Last <a href="/cdn-cgi/l/email-protection" class="__cf_email__">[email&#160;protected]</a> --admin-user=admin --admin-password=123A_Zhz --language=en_US --currency=USD --timezOne=America/Chicago --use-rewrites=1

(已修改成自己数据,另外这是用下载数据包解压的)

报错:

PHP Fatal error:  Uncaught Error: Class &#39;Cli&#39; not found in /var/www/magento2/bin/magento:31

Stack trace:

#0 {main}

  thrown in /var/www/magento2/bin/magento on line 31

这是什么原因呢,会的请指点一下

0

我看了下代码,是没找到MagentoFrameworkConsoleCli这个类。

composer  install  -v
composer  update
试试。

0