-
-
Notifications
You must be signed in to change notification settings - Fork 483
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
Unable to install #2068
Comments
Hi! I recommend that you use WPCS using Composer per project. Installing it globally could cause conflicts if you are using Composer in your projects, and dependencies clash. In your project just do Then you can just run |
I get the same problem on a global install in macOS Monterey.
Based on this error, it looks like the installer is incompatible with Composer 2. I tried upgrading to the latest Composer with I was able to downgrade Composer to 1 using
If you're installing globally, one way around this is to downgrade Composer, do the install, and then restore Composer to the latest version. |
@andfinally See @dingo-d's answer just above your post. You can use the same instructions with The installer is perfectly compatible with Composer 2.x, but not when using the old |
Closing as duplicate of #1901. |
Bug Description
Installing fails with
composer create-project wp-coding-standards/wpcs
.And would seem to work, but throws Fatal Error with standalone installatation.
System: Ubuntu 20.04.4 LTS
php: 7.4
composer: 2.3.7
First attempt: install locally
command:
Result:
Second attempt: install standalone
Do stuff to do.
PHP_CodeSniffer version 2.2.0 (stable)
Command:
Result:
some very nice:
and cute:
and finally:
The text was updated successfully, but these errors were encountered: