我正在考虑如何使用本地目录将Symfony 2.8升级到3.4。我的开发环境不能访问互联网。
我一直在关注https://getcomposer.org/doc/05-repositories.md#path
我下载Symfony 3.4并将其存放在与Synfony 2.8相同的目录中
Frameworks
Symfony-2.8
Symfony-3.4然后我对composer.json文件(symfony 2.8)进行了如下配置:
"repositories": [
{
"type": "path",
"url" : "/frameworks/symfony3-4"
}
],
"require": {
"/frameworks/symfony3-4": "*"
},当我尝试更新时:
Composer update我有这个错误:
Problem 1
- The requested package ../symfony3-4 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.
Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.你有什么建议做这件事吗?
发布于 2018-05-09 20:58:45
在require语句中使用"symfony/symfony": "^3.0"
https://stackoverflow.com/questions/50251375
复制相似问题