Composer无法识别扩展名php-zip

时间:2017-10-05 20:20:23

标签: php laravel composer-php

当我尝试通过以下方式创建新项目时,我遇到了作曲家的问题:

    Vue.component("barista-template",{
    template: "#b-template",
    data: function () {
        return{
            order_type:"",
            order_value: "",
        }
    },
    computed: {
        showText () {
            if(this.order_type === '') return '';
            return 'One ' + this.order_type + ' that would be ' + this.order_value
        },
        methods: {
            swapComponent: function(component)
            {
                setTimeout(() => {
                    this.showText2('brewing')
                }, 1500);
                this.currentComponent = component;
            }
        }
        showText2 (){
            if(this.order_type === '') return '';
            return 'waiting for ' + this.order_type
        }
    },
    methods: {
        choose: function (order_type) {
            this.order_type = order_type;

            if (this.order_type == "drip") {
                this.order_value = "$10";
            }
            if (this.order_type == "frenchpress") {
                this.order_value = "$20";
            }
            if (this.order_type == "aeropress") {
                this.order_value = "$30";
            }
        }
    },
});
new Vue ({
    el:"#app",
    data:function () {
        return{
            showing:true
        }
    }
});

运行此命令之后,作曲家说:

laravel new blog

我安装了php7.1-zip,zip,unzip,php-zip,但它还没有用。 我的操作系统是Debian 9,我安装了php7.1和php7.1-zip。你有什么想法解决这个问题吗?

2 个答案:

答案 0 :(得分:0)

尝试此命令:

sudo apt-get install php7.1-zip

如果您发现它不起作用,请尝试重新启动计算机。

答案 1 :(得分:0)

在您的网络根目录中创建包含info.php

<?php phpinfo(); ?>文件

然后在浏览器中加载该文件。

您的Apache可能未配置为使用您期望的PHP安装。 phpinfo()将向您显示加载的PHP版本,加载的php.ini所在的位置,启用的扩展程序等。

相关问题