本文介绍了部署laravel 5与AWS EB CLI:UnexpectedValueException - 无效的版本字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以,我正要部署一些变化,第一次在某些月份,我得到这个错误回:

So I was just about to deploy some changes for the first time in some months, and I get this error back:

  [UnexpectedValueException]                                                  
  Could not parse version constraint ^1.2.2: Invalid version string "^1.2.2" 

经过一番挖掘,我发现了线我composer.lock文件:

After some digging, I found the line in my composer.lock file:

{
    "_readme": [
        ...
    ],
    "hash": "NotTellingYou",
    "packages": [
        {
         ...
        },
         ....
        "require": {
                "nikic/php-parser": "^1.2.2",
                "php": ">=5.3.3",
                "symfony/console": "~2.1",
                "symfony/filesystem": "~2.1",
                "symfony/finder": "~2.1"
            },

但ehhh ......如何让我的字符串正确呢?我知道最新的版本是1.3,但是这没关系,我来改变这种状况?如果运行时,岂不是自动作曲家更新

推荐答案

变nikic / PHP解析器:^ 1.2.2以nikic / PHP解析器:1 *

change "nikic/php-parser": "^1.2.2"to "nikic/php-parser": "1.*",

这篇关于部署laravel 5与AWS EB CLI:UnexpectedValueException - 无效的版本字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-14 05:51