Composer更新代码出现http-basic.github.com.password : NULL value found, but a string is required

Composer
392
0
0
2023-01-29

composer 在更新代码时,有时候会有这种错误:

解决方法也很简单,打开/root/.config/composer/auth.json, 把里面的password选项,随便填个值就行,github改变了校验方式,不需要密码了,可检验还在。