本文介绍了插入laravel5模块后出现编解码错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已在全球范围内安装了代码接收.当我运行codecept run functional命令时,它工作正常.当我按照Codeception网站文档中的说明将laravel5模块插入functional.suite.yml时,它给了我这样的错误.

i have installed codeception globally. it works fine when i run codecept run functional command. when i insert laravel5 module into functional.suite.yml as per instruction from codeception website documentation, it gives me error like this.

当我卸下laravel5模块codecept run时,它可以正常工作.有谁知道如何解决这个错误?我应该在本地而不是在全局安装Codeception?

when i remove laravel5 module codecept run works normally. anyone knows how to tackle that error? should i install codeception locally instead of globally?

注意::我不使用宅基地/流浪者

Note : i don't use homestead/vagrant

推荐答案

此错误似乎与Laravel5模块无关.

This error doesn't seem to be related to Laravel5 module.

您的问题是您安装了两个相互冲突的PHPUnit版本.

Your problem is that you have 2 conflicting versions of PHPUnit installed.

您已在供应商目录中安装了PHPUnit 5.2.12,但是您的全局Codeception安装与PHPUnit 4.8.23捆绑在一起.

You have PHPUnit 5.2.12 installed in vendor directory,but your global Codeception install is bundled with PHPUnit 4.8.23.

有2种解决方法:
a)从您的项目中卸载PHPUnit.
b)使用Composer安装Codeception.

There are 2 ways to solve it:
a) uninstall PHPUnit from your project.
b) install Codeception with Composer.

这篇关于插入laravel5模块后出现编解码错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-19 04:13