yii2: composer install bower-asset/punycode fail!!!

This is console output:

- Installing bower-asset/punycode (v1.3.2) Downloading: Failed    Failed to download bower-asset/punycode from dist: The "https://api.github.com/repos/bestiejs/punycode.js/zipball/bc39b1333f2747030d69d89b76af49e571366205" file could not be downloaded (HTTP/1.1 302 Found)
    Now trying to download from source
  - Installing bower-asset/punycode (v1.3.2)The authenticity of host 'github.com (192.30.253.112)' can't be established.
RSA key fingerprint is SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8.
Are you sure you want to continue connecting (yes/no)? yes
 Cloning bc39b1333f

                                                                                                   
  [RuntimeException]                                                                               
  Failed to clone https://github.com/bower-asset/punycode.git via https, ssh protocols, aborting.  
  - https://github.com/bower-asset/punycode.git                                                    
    Cloning into '/data/web/test/vendor/bower-asset/punycode'...                                   
    remote: Invalid username or password.                                                          
    fatal: Authentication failed for 'https://github.com/bower-asset/punycode.git/'                
  - git@github.com:bower-asset/punycode.git                                                        
    Cloning into '/data/web/test/vendor/bower-asset/punycode'...                                   
    Permission denied (publickey).                                                                 
    fatal: Could not read from remote repository.                                                  
                                                                                                   
    Please make sure you have the correct access rights                                            
    and the repository exists. 

Composer requires:

"require": {
        "php": ">=7.0.0",
        "yiisoft/yii2": "^2.0",
        "yiisoft/yii2-bootstrap": "^2.0",
        "yiisoft/yii2-swiftmailer": "^2.0",
        "yiisoft/yii2-redis": "^2.0",
        "yiisoft/yii2-imagine": "^2.0",
        "yiisoft/yii2-authclient": "^2.0",
        "yiisoft/yii2-httpclient": "^2.0",
        "symfony/process": "^3.1"
    },
    "require-dev": {
        "yiisoft/yii2-debug": "^2.0",
        "yiisoft/yii2-gii": "^2.0",
        "yiisoft/yii2-faker": "^2.0",
        "codeception/base": "^2.0",
        "codeception/verify": "~0.3.1"
    },

Version: yii-2.0.10 composer-1.3.1 php-7.0.14
fxp/composer-asset-plugin-1.2.2
os:ubuntu-16.04

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 15 (12 by maintainers)

Most upvoted comments

Hate to say that, but we all had got some sorts of weird behavior of composer in China. Try the following steps:

  1. 'Update “fxp/composer-asset-plugin”, composer global update "fxp/composer-asset-plugin"
  2. Delete the ‘vendor’ folder
  3. Delete the ‘composer.lock’ file at root folder.
  4. composer install

http://pkg.phpcomposer.com/ This url may help you increase the download speed in China.

Could be firewall as well. When I recently was in mainland China I’ve got all sorts of weird behavior of composer…