2014-10-30 73 views
0

我試圖用php artisan workbench vendor/packagename創建一個新包,但是當我運行它,我得到Laravel 5:工匠工作臺:照明/支找不到

Package workbench created! 
Loading composer repositories with package information 
Installing dependencies (including require-dev) 
Your requirements could not be resolved to an installable set of packages. 

Problem 1 
    - The requested package illuminate/support 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://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> for more details. 

Read <http://getcomposer.org/doc/articles/troubleshooting.md> for further common problems. 

illuminate/support存在laravel/framework/src/Illuminate/Support下這樣不太確定可能導致它的原因。

生成composer.json文件需要以下

"require": { 
    "php": ">=5.4.0", 
    "illuminate/support": "5.0.*" 
}, 

不知道illuminate/support版本5.0是什麼導致了問題?

問題解決了

我不得不手動修改從stableminimum-stabilitydev半生成的包內,然後運行composer update來完成它。

+0

運行,請,把你的解決方案作爲答案,並將其標記爲已接受的答案。 – 2014-11-01 11:30:44

回答

0

由於Laravel 5仍處於開發階段,改變你的composer.json稱爲「最小穩定」,從穩定到「開發」:

"minimum-stability": "dev" 

然後在命令行

composer update