Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation error #2100

Closed
BonBonSlick opened this issue Jul 26, 2018 · 2 comments
Closed

Installation error #2100

BonBonSlick opened this issue Jul 26, 2018 · 2 comments

Comments

@BonBonSlick
Copy link

....
  - Installing dealerdirect/phpcodesniffer-composer-installer (v0.4.4): Loading from cache
Plugin installation failed, rolling back
  - Removing dealerdirect/phpcodesniffer-composer-installer (v0.4.4)

                                                                                                                                                                                                    
  [Symfony\Component\Process\Exception\ProcessFailedException]                                                                                                                                      
  The command "'/var/www/sitename/vendor/bin/phpcs' '--config-show' 'installed_paths'" failed.                                                                                                        
                                                                                                                                                                                                    
  Exit Code: 255(Unknown error)                                                                                                                                                                     
                                                                                                                                                                                                    
  Working directory: /var/www/sitename                                                                                                                                                                
                                                                                                                                                                                                    
  Output:                                                                                                                                                                                           
  ================                                                                                                                                                                                  
                                                                                                                                                                                                    
                                                                                                                                                                                                    
  Error Output:                                                                                                                                                                                     
  ================                                                                                                                                                                                  
  PHP Warning:  require_once(/var/www/sitename/vendor/composer/autoload_real.php): failed to open stream: No such file or directory in /var/www/sitename/vendor/autoload.php on line 5                  
  PHP Stack trace:                                                                                                                                                                                  
  PHP   1. {main}() /var/www/sitename/vendor/squizlabs/php_codesniffer/bin/phpcs:0                                                                                                                    
  PHP   2. spl_autoload_call() /var/www/sitename/vendor/squizlabs/php_codesniffer/bin/phpcs:17                                                                                                        
  PHP   3. PHP_CodeSniffer\Autoload::load() /var/www/sitename/vendor/squizlabs/php_codesniffer/bin/phpcs:17                                                                                           
  PHP   4. include() /var/www/sitename/vendor/squizlabs/php_codesniffer/autoload.php:79                                                                                                               
  PHP Fatal error:  require_once(): Failed opening required '/var/www/sitename/vendor/composer/autoload_real.php' (include_path='.:/usr/share/php') in /var/www/sitename/vendor/autoload.php on line 5  
  PHP Stack trace:                                                                                                                                                                                  
  PHP   1. {main}() /var/www/sitename/vendor/squizlabs/php_codesniffer/bin/phpcs:0                                                                                                                    
  PHP   2. spl_autoload_call() /var/www/sitename/vendor/squizlabs/php_codesniffer/bin/phpcs:17                                                                                                        
  PHP   3. PHP_CodeSniffer\Autoload::load() /var/www/sitename/vendor/squizlabs/php_codesniffer/bin/phpcs:17                                                                                           
  PHP   4. include() /var/www/sitename/vendor/squizlabs/php_codesniffer/autoload.php:79  
@gsherwood
Copy link
Member

You've also reported this here: PHPCSStandards/composer-installer#53

I'm going to close this report as it's best for the project you are installing to have a look at what is going on. If you can't install PHPCS directly via composer, then I'd take a look. But given I have no idea what that phpcodesniffer-composer-installer plugin is doing, it's best for them to take a look first and let me know if they need changes from PHPCS.

@BonBonSlick
Copy link
Author

Yeah, a lot of dependencies, i do not where problem is, so reported to every package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants