2

I am trying to install Magento2 using composer.

Getting codesniffer error and tried below steps to overcome the error but unfortunately it's not going away

STEP 1: Tried to install magento2

$ composer create-project --repository=https://repo.magento.com/magento/project-community-edition magento2

enter image description here

As you can see, the installation ended up with the error Failed to set PHP CodeSniffer installed_paths Config

STEP 2: so I tried to install the codesniffer using below command

$ composer global require "squizlabs/php_codesniffer=*"

successfully installed codesniffer as shown below enter image description here

I removed the magento2 directory to start over again

$ rm -rf magento2

STEP 3: tried to install magento2 again

$ composer create-project --repository=https://repo.magento.com/magento/project-community-edition magento2

that still ended up with the same error enter image description here

I tested the phpcs installation and there seems no issue with it

enter image description here

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.