2
我一直在嘗試創建一個簡單的作曲家包。但我堅持以下問題。不知道如何解決這個問題。無法創建作曲家包 - InvalidArgumentException
[InvalidArgumentException]
Could not find package sarav/sample-package at any version for your minimum-stability (stable). Check the package spelling or your minimum-stability
包網址:https://packagist.org/packages/sarav/sample-package
我跑到下面的作曲家命令
composer require sarav/sample-package
我的作曲家內容
{
"name": "sarav/sample-package",
"description": "Sample package",
"type": "Library",
"license": "MIT",
"authors": [
{
"name": "Sarav",
"email": "[email protected]"
}
],
"minimum-stability": "dev",
"require": {
"php": ">=5.3.0"
},
"autoload": {
"psr-0": {
"Sarav": "src/"
}
}
}
嗨史蒂文。感謝幫助。有效。現在我已經爲laravel創建了一個新的包。雖然我需要通過作曲家,但我得到一個錯誤。你能幫忙嗎?這裏是鏈接https://github.com/composer/composer/issues/4407 –
我已經回答了你的GitHub問題:) –