cari

Rumah  >  Soal Jawab  >  teks badan

Fail input Spark tidak boleh dibuka

Saya menggunakan PHP v8.1 dan cuba membuka halaman alu-aluan Codeigniter (v4.2.10) menggunakan arahan berikut: php Sparkserve 并收到此错误:无法打开输入文件:spark. < /p>

Saya mencari dalam talian dan tidak menemui apa-apa yang berkaitan. Jadi saya cuba memasang percikan menggunakan komposer: composer require sparkphp/spark tetapi tidak berjaya. Saya mendapat ralat berikut:

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires sparkphp/spark ^0.16.3 -> satisfiable by sparkphp/spark[0.16.3].
    - sparkphp/spark 0.16.3 requires destrukt/destrukt ^0.7.1 -> could not be found in any version, there may be a typo in the package name.

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting
   see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.
 - It's a private package and you forgot to add a custom repository to find it

Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
You can also try re-running composer require with an explicit version constraint, e.g. "composer require sparkphp/spark:*" to figure out if any version is installable, or "composer require sparkphp/spark:^2.1" if you know which you need.

Installation failed, deleting ./composer.json.

Sekarang saya tidak tahu apa yang perlu dilakukan, terima kasih banyak atas bantuan anda.

P粉759457420P粉759457420392 hari yang lalu752

membalas semua(1)saya akan balas

  • P粉356128676

    P粉3561286762023-11-03 09:16:15

    Could not open input file: spark

    bermakna anda tiada dalam direktori akar Codeigniter. Hanya pergi ke direktori akar Codeigniter dan jalankan arahan. Jika anda menggunakan Komposer untuk mencipta aplikasi anda

    composer create-project codeigniter4/appstarter project-root

    Hanya pergi ke "Project Root" (sebarang nama yang anda tulis)

    cd project-root
    php spark serve

    balas
    0
  • Batalbalas