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

     
     
  • 相关阅读:
    Poj2516 最小费用最大流
    spss研究高等院校人文社会研究课题受什么因素影响
    使用bs4实现将诗词名句网站中三国演义小说章节内容爬取
    python爬虫1 爬虫概要
    解析出所有城市名称
    xpath爬取58二手房的房源信息
    Po两段小代码,说几个小细节____关于九九乘法表&amp;amp;amp;国际象棋棋盘
    小爬虫demo——爬取“妹子”等网站链接____使用requests库
    爬取京东历史图书图片并下载到本地____requests库
    python基础:复习整理笔记(一)____关于 工具、程序执行原理、python风格规范
  • 原文地址:https://www.cnblogs.com/mangge/p/5390473.html
Copyright © 2011-2022 走看看