我正在Laravel 5.8中創建一個新項目,我也想安裝Telescope,但是當我在項目中執行命令時:composer require laravel/telescope輸出:./composer.json has been updated Loading composer repositories with package information Updating dependencies (including require-dev) Your requirements could not be resolved to an installable set of packages. Problem 1 - laravel/telescope 2.0.x-dev requires moontoast/math ^1.1 -> satisfiable by moontoast/math[1.1.0, 1.1.1, 1.1.2]. - laravel/telescope v2.0 requires moontoast/math ^1.1 -> satisfiable by moontoast/math[1.1.0, 1.1.1, 1.1.2]. - laravel/telescope v2.0.1 requires moontoast/math ^1.1 -> satisfiable by moontoast/math[1.1.0, 1.1.1, 1.1.2]. - laravel/telescope v2.0.2 requires moontoast/math ^1.1 -> satisfiable by moontoast/math[1.1.0, 1.1.1, 1.1.2]. - laravel/telescope v2.0.3 requires moontoast/math ^1.1 -> satisfiable by moontoast/math[1.1.0, 1.1.1, 1.1.2]. - laravel/telescope v2.0.4 requires moontoast/math ^1.1 -> satisfiable by moontoast/math[1.1.0, 1.1.1, 1.1.2]. - moontoast/math 1.1.2 requires ext-bcmath * -> the requested PHP extension bcmath is missing from your system. - moontoast/math 1.1.1 requires ext-bcmath * -> the requested PHP extension bcmath is missing from your system. - moontoast/math 1.1.0 requires ext-bcmath * -> the requested PHP extension bcmath is missing from your system. - Installation request for laravel/telescope ^2.0 -> satisfiable by laravel/telescope[2.0.x-dev, v2.0, v2.0.1, v2.0.2, v2.0.3, v2.0.4]. To enable extensions, verify that they are enabled in your .ini files:如何安裝缺少的依賴項?我正在使用PHP 7.2和ubuntu 18.04.2。
1 回答
達令說
TA貢獻1821條經驗 獲得超6個贊
您將必須安裝bcmath擴展程序。在您的情況下,可以通過運行
sudo apt-get install php7.2-bcmath
sudo apt-get install php7.1-bcmath 如果您有PHP 7.1
然后再次運行require命令。
- 1 回答
- 0 關注
- 188 瀏覽
添加回答
舉報
0/150
提交
取消
