Laptop shuts off after 3 seconds booting

Jul 26, 2018
I have an acer aspire 5315 and whenever I press the power button while charging, the laptop and fan comes on then shuts off after 3 seconds and the charging light start to blink. Also, I just put in a new CPU fan. However, when I unplug the charger, the laptop doesn’t come on as if the battery is dead.
If the battery had any ability at all, then it would have bypassed this. But if that isn't the case, and the battery has been dead for a while, then it may well be something else. In such a case, I would suggest having a tech look at it.