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

     
     
  • 相关阅读:
    庖丁解牛识控件
    打开地图文件和shape文件代码加载Mxd文档
    IMapControl3 Interface(1) Properties属性
    避免事件响应传递依赖
    提示:ArcGIS version not specified. You must call RuntimeManager.Bind before creating any ArcGIS components.错误
    我的联想笔记本电脑为啥字母键变成数字键怎么切换过来
    C#读取word文件
    TensorFlow笔记(基础篇):加载数据之预加载数据与填充数据
    7.1 TensorFlow笔记(基础篇):加载数据之预加载数据与填充数据
    7.2 TensorFlow笔记(基础篇): 生成TFRecords文件
  • 原文地址:https://www.cnblogs.com/mangge/p/5390473.html
Copyright © 2011-2022 走看看