zoukankan      html  css  js  c++  java
  • YII2安装和更新报错

    报错内容如下:

    Your requirements could not be resolved to an installable set of packages.

    Problem 1
    - yiisoft/yii2 2.0.x-dev requires bower-asset/jquery.inputmask ~3.2.2 -> no
    matching package found.
    - yiisoft/yii2 dev-master requires bower-asset/jquery.inputmask ~3.2.2 -> no
    matching package found.
    - yiisoft/yii2 2.0.7 requires bower-asset/jquery 2.2.*@stable | 2.1.*@stable
    | 1.11.*@stable -> no matching package found.
    - yiisoft/yii2 2.0.6 requires bower-asset/jquery 2.1.*@stable | 1.11.*@stabl
    e -> no matching package found.
    - yiisoft/yii2 2.0.5 requires bower-asset/jquery 2.1.*@stable | 1.11.*@stabl
    e -> no matching package found.
    - Installation request for yiisoft/yii2 >=2.0.5 -> satisfiable by yiisoft/yi
    i2[2.0.5, 2.0.6, 2.0.7, dev-master, 2.0.x-dev].

    Potential causes:
    - A typo in the package name
    - The package is not available in a stable-enough version according to your min
    imum-stability setting
    see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more det
    ails.

    Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further commo
    n problems.

    解决办法有二:

    一、

     改变composer.json配置:
     "minimum-stability": "stable",
     
    二、
    替换版本:
    将DEV版本替换成稳定版
     
    根据以上两种方式还是报错,我又试了试,方法如下:
    1、首先更新composer
        执行composer global require "fxp/composer-asset-plugin:~1.1"
    2、再进行更新
        下面这个过程需要从github获取一个Token
     
    D:qampphtdocsyii2yii2basic>composer update

    Loading composer repositories with package information
    Updating dependencies (including require-dev)
    Reading bower.json of bower-asset/jquery.inputmask (3.1.34)
    Could not fetch https://api.github.com/repos/RobinHerbots/jquery.inputmask/commi
    ts/f48d10463039a23469e65cc4b5c0b4409e8fb596, please create a GitHub OAuth token
    to go over the API rate limit
    Head to “这里是一个获取Token的网址”
    to retrieve a token. It will be stored in "C:/Users/Administrator/AppData/Roamin
    g/Composer/auth.json" for future use by Composer.
    Token (hidden):
    Token stored successfully.
    - Installing yiisoft/yii2-composer (2.0.4)
    Downloading: 100%

    - Installing ezyang/htmlpurifier (v4.6.0)
    Downloading: 100%

    - Installing swiftmailer/swiftmailer (v5.4.1)
    Downloading: 100%

    - Installing bower-asset/jquery (2.2.3)
    Downloading: 100%

    - Installing bower-asset/yii2-pjax (v2.0.6)
    Downloading: 100%

    - Installing bower-asset/punycode (v1.3.2)
    Downloading: 100%

    - Installing bower-asset/jquery.inputmask (3.2.7)
    Downloading: 100%

    - Installing cebe/markdown (1.1.0)
    Downloading: 100%

    - Installing yiisoft/yii2 (2.0.7)
    Downloading: 100%

    - Installing yiisoft/yii2-swiftmailer (2.0.5)
    Downloading: 100%

    - Installing yiisoft/yii2-codeception (2.0.5)
    Downloading: 100%

    - Installing bower-asset/bootstrap (v3.3.5)
    Downloading: 100%

    - Installing yiisoft/yii2-bootstrap (2.0.6)
    Downloading: 100%

    - Installing yiisoft/yii2-debug (2.0.6)
    Downloading: 100%

    - Installing bower-asset/typeahead.js (v0.11.1)
    Downloading: 100%

    - Installing phpspec/php-diff (v1.1.0)
    Downloading: 100%

    - Installing yiisoft/yii2-gii (2.0.5)
    Downloading: 100%

    - Installing fzaninotto/faker (v1.5.0)
    Downloading: 100%

    - Installing yiisoft/yii2-faker (2.0.3)
    Downloading: 100%

    fzaninotto/faker suggests installing ext-intl (*)
    Writing lock file
    Generating autoload files

     
     
  • 相关阅读:
    Android学习笔记一:项目目录结构
    ReactNative踩坑日志——OnPress随着render()执行被自动调用?
    ReactNative踩坑日志——使用async/await语法解决网络请求的异步导致的指令执行顺序错乱问题
    ReactNative踩坑日志——代码执行方式(面向对象)
    ReactNative踩坑日志——fetch如何向服务器传递参数
    ReactNative踩坑日志——函数绑定this
    ReactNative踩坑日志——如何实现删除scrollview中的视图
    ReactNative踩坑日志——页面跳转之——Undefined is not an Object(evaluating this2.props.navigation.navigate)
    Git使用笔记
    CSS拾遗
  • 原文地址:https://www.cnblogs.com/mangge/p/5390473.html
Copyright © 2011-2022 走看看