First update your TWRP to 3.1.1.0.
If you have wiped the system, then you will have to fastboot the TWRP again, reboot in recovery from the same fastboot session.
Now install the rom from external SD card if you don't have the rom on the internal memory anymore.
as long as you are able to boot...