-
Notifications
You must be signed in to change notification settings - Fork 28
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
Issues when running yarn setup:tools for the first time #514
Comments
I answered in slack, but to add it here for others:
This is a common error, we should add something to explain this to the readme. |
For reference, when doing Deprecation Notice: Using ${var} in strings is deprecated, use {$var} instead in phar:///usr/local/bin/composer/vendor/symfony/console/Command/DumpCompletionCommand.php:48
Deprecation Notice: Using ${var} in strings is deprecated, use {$var} instead in phar:///usr/local/bin/composer/vendor/symfony/console/Command/DumpCompletionCommand.php:56
Deprecation Notice: Using ${var} in strings is deprecated, use {$var} instead in phar:///usr/local/bin/composer/src/Composer/Autoload/AutoloadGenerator.php:875
Deprecation Notice: Using ${var} in strings is deprecated, use {$var} instead in phar:///usr/local/bin/composer/src/Composer/Autoload/AutoloadGenerator.php:880
Loading composer repositories with package information
GitHub API limit (0 calls/hr) is exhausted, could not fetch https://api.github.com/repos/WordPress/wporg-mu-plugins/contents/composer.json?ref=ed9879d762f9c46edd98e01ab8b492dbaea95af0. Create a GitHub OAuth token to go over the API rate limit. You can also wait until ? for the rate limit to reset.
When working with _public_ GitHub repositories only, head to https://github.com/settings/tokens/new?scopes=&description=Composer+on+Juans-MacBook-Pro-2.local+2024-05-07+1538 to retrieve a token.
This token will have read-only permission for public information only.
When you need to access _private_ GitHub repositories as well, go to https://github.com/settings/tokens/new?scopes=repo&description=Composer+on+Juans-MacBook-Pro-2.local+2024-05-07+1538
Note that such tokens have broad read/write permissions on your behalf, even if not needed by Composer.
Tokens will be stored in plain text in "/Users/juanmanuelgarrido/.composer/auth.json" for future use by Composer.
For additional information, check https://getcomposer.org/doc/articles/authentication-for-private-packages.md#github-oauth
Token (hidden): This issue with the Composer command prompting for a GitHub token is due to hitting the API rate limit.
By following these steps, I properly authenticated with GitHub using the personal access token and proceed with the Composer command without hitting the API rate limit. |
After running See full output when
|
In conversation with @ryelle via Slack she mentioned the required PHP version for this repo is v7.4
So, I updated the PHP version on my Mac. For reference, this is how I did it:
After these changes I could verify that PHP 7.4 is now the default version on my terminal php -v |
I'm getting the following error when doing
yarn setup:tools
for the first time after cloning the repo locallySee full output when
yarn setup:tools
The text was updated successfully, but these errors were encountered: