Error while installing bedrock - codesniffer "must be absolute paths."

Good Day,

I’m trying to install bedrock on a dev server. I get the following error related to codesniffer:

  [InvalidArgumentException]
  $from (\\192.168.205.29\WWW\agsrecordsmanagement\bedrock\192.168.205.29\www
  \agsrecordsmanagement\bedrock\vendor\bin/phpcs) and $to (\\192.168.205.29\W
  WW\agsrecordsmanagement\bedrock\vendor\squizlabs\php_codesniffer\scripts\ph
  pcs) must be absolute paths.

I’ve tried to run the install on a local server on the same computer and no issue.

I run this command first:
bezy-r@TI518 MINGW64 //192.168.205.29/www/agsrecordsmanagement/bedrock$ composer create-project roots/bedrock

then this one:
bezy-r@TI518 MINGW64 //192.168.205.29/www/agsrecordsmanagement/bedrock
$ composer install

Same issue.

Below is the result doing --verbose:

$ composer install --verbose
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Dependency resolution completed in 0.001 seconds
Analyzed 76 packages to resolve dependencies
Analyzed 96 rules to resolve dependencies
Package operations: 1 install, 0 updates, 0 removals
Installs: squizlabs/php_codesniffer:2.8.1
  - Installing squizlabs/php_codesniffer (2.8.1): Loading from cache Extracting archive


  [InvalidArgumentException]
  $from (\\192.168.205.29\WWW\agsrecordsmanagement\bedrock\192.168.205.29\www
  \agsrecordsmanagement\bedrock\vendor\bin/phpcs) and $to (\\192.168.205.29\W
  WW\agsrecordsmanagement\bedrock\vendor\squizlabs\php_codesniffer\scripts\ph
  pcs) must be absolute paths.


Exception trace:
 () at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/Util/Filesystem.php:325
 Composer\Util\Filesystem->findShortestPath() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/Installer/Bin                                                   aryInstaller.php:189
 Composer\Installer\BinaryInstaller->generateUnixyProxyCode() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Compos                                                   er/Installer/BinaryInstaller.php:167
 Composer\Installer\BinaryInstaller->installUnixyProxyBinaries() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Com                                                   poser/Installer/BinaryInstaller.php:146
 Composer\Installer\BinaryInstaller->installFullBinaries() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/                                                   Installer/BinaryInstaller.php:86
 Composer\Installer\BinaryInstaller->installBinaries() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/Inst                                                   aller/LibraryInstaller.php:91
 Composer\Installer\LibraryInstaller->install() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/Installer/I                                                   nstallationManager.php:173
 Composer\Installer\InstallationManager->install() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/Installe                                                   r/InstallationManager.php:160
 Composer\Installer\InstallationManager->execute() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/Installe                                                   r.php:584
 Composer\Installer->doInstall() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/Installer.php:223
 Composer\Installer->run() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/Command/InstallCommand.php:119
 Composer\Command\InstallCommand->execute() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/vendor/symfony/console/Comma                                                   nd/Command.php:267
 Symfony\Component\Console\Command\Command->run() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/vendor/symfony/console                                                   /Application.php:846
 Symfony\Component\Console\Application->doRunCommand() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/vendor/symfony/co                                                   nsole/Application.php:191
 Symfony\Component\Console\Application->doRun() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/Console/App                                                   lication.php:227
 Composer\Console\Application->doRun() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/vendor/symfony/console/Applicatio                                                   n.php:122
 Symfony\Component\Console\Application->run() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/Console/Appli                                                   cation.php:100
 Composer\Console\Application->run() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/bin/composer:54
 require() at C:\ProgramData\ComposerSetup\bin\composer.phar:24

Thanks for your help.

I’ve installed Trellis + Sage for a personal project and now Bedrock + Sage at work, really lot of fun to learn the best practices!!!