Magento2 installation – Failed to set PHP CodeSniffer installed_paths Config

Magento2 installation – Failed to set PHP CodeSniffer installed_paths Config

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

Magento2 installation – Failed to set PHP CodeSniffer installed_paths Config

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


Go to Source of this post
Author Of this post: Tahir Yasin
Title Of post: Magento2 installation – Failed to set PHP CodeSniffer installed_paths Config
Author Link: {authorlink}