DiamondLightSource/SynchWeb

composer install fails

Closed this issue · 1 comments

composer install seems to be attempting to install the DHL-API package from stufisher and is bumping up against a GitHub rAPI rate limit.

bash-4.2$ composer install
Cannot create cache directory /var/www/.cache/composer/repo/https---repo.packagist.org/, or directory is not writable. Proceeding without cache
Cannot create cache directory /var/www/.cache/composer/files/, or directory is not writable. Proceeding without cache
No lock file found. Updating dependencies instead of installing from lock file. Use composer update over composer install if you do not have a lock file.
Loading composer repositories with package information
Cannot create cache directory /var/www/.cache/composer/repo/github.com/stufisher/DHL-API/, or directory is not writable. Proceeding without cache
GitHub API limit (0 calls/hr) is exhausted, could not fetch https://api.github.com/repos/stufisher/DHL-API. Create a GitHub OAuth token to go over the API rate limit. You can also wait until ? for the rate limit to reset.

Head to https://github.com/settings/tokens/new?scopes=repo&description=Composer+on+als-enable.bl1231.als.lbl.gov+2020-12-03+0026
to retrieve a token. It will be stored in "/var/www/.config/composer/auth.json" for future use by Composer.
Token (hidden): 

Is there anyway for to bypass this?

wow! I guess I should read these little error messages more carefully. I created an OAUTH token and now things are working.