我是作曲家新手,我正在尝试通过作曲家更新安装以下库
https://github.com/neitanod/forceutf8
据我了解,我的composer.json 看起来像这样
{
"config": {
"vendor-dir": "libs/vendor"
},
"require": {
"raven/raven": "0.7.1",
"monolog/monolog": "1.7.*",
"smarty/smarty": "3.1.16",
"forceutf8/forceutf8": "master"
}
}
Bt 由于某种原因(因为我认为forceutf8没有版本)它因错误而停止,所有其余的都安装正确,我得到的错误是
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
- The requested package forceutf8/forceutf8 could not be found in any version, there may be a typo in the package na
me.
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.
我也尝试了以下版本,但仍然没有运气
{
"config": {
"vendor-dir": "libs/vendor"
},
"name": "career/skillquest",
"repositories": [
{
"type": "vcs",
"url": "https://github.com/neitanod/forceutf8"
}
],
"require":
{
"forceutf8/forceutf8": "dev-master",
"raven/raven": "0.7.1",
"monolog/monolog": "1.7.*",
"smarty/smarty": "3.1.16"
}
}
问题是它需要
"neitanod/forceutf8": "dev-master"
NOT
"forceutf8/forceutf8": "master"