Thanks user2204085 !
To be more accurate, when you run
php go-pear.phar
type 11 (not 'all' or not enter) then type $prefix\pear.ini .
The file PEAR_ENV.reg will be created in your php directory.
I've followed the above steps, and it works fine for me.enter code here