执行:composer update 时,提示:No valid bower.json was found in any branch or tag of ....的解决方法

1、执行:composer update 时,提示:No valid bower.json was found in any branch or tag of https://github.com/blueimp/JavaScript-Canvas-to-Blob.git, cou
ld not load a package from it. 如图1

执行:composer update 时,提示:No valid bower.json was found in any branch or tag of ....的解决方法_第1张图片

图1

2、执行:composer global require “fxp/composer-asset-plugin”,更新Composer asset plugin至最新版本,如图2

执行:composer update 时,提示:No valid bower.json was found in any branch or tag of ....的解决方法_第2张图片

3、

因为一些需要token的依赖包未成功安装,解决办法就是依照上面的办法获取token后,进入项目中,打开composer.json文件,配置token

"config": {
    "process-timeout": 1800,
    "github-oauth": {
        "github.com": "您的github授权码"
    },
    "fxp-asset":{
        "installer-paths": {
            "npm-asset-library": "vendor/npm",
            "bower-asset-library": "vendor/bower"
        }
    }
},

token的获取

进入 https://github.com/settings/tokens

登录个人github账号,点击右上角的Generate new token

然后输入token使用描述和选择需要的权限

生成后会显示token,请复制保存该token,如果你需要下次使用,否则刷新页面token会隐藏,无法再次查看

你可能感兴趣的:(执行:composer update 时,提示:No valid bower.json was found in any branch or tag of ....的解决方法)