SQL Server Cannot Create Transactional replication Error 14013
You can follow these steps before setting up a Publication.
Tutorial: Prepare SQL Server for replication (publisher, distributor, subscriber)

Create Windows accounts for replication.
Prepare the snapshot folder.
Configure distribution.

I believe you skipped this. If not, please edit you question with the steps you already followed successfully.