ESP8266 doesn’t connect to WiFi when powered by power supply

Cheap power supplies are notorious for being unable to provide nameplate power. I suspect that the power supply is marginal and that the final location has poorer wifi reception. The combination could explain the symptoms you see. I'd get a better supply.