This actually takes me an hour to figure out. If you create a site based on team site template, you cannot create a publishing page by default.

At the first we need to go to “Site Settings”. There we click on “Site collection features“. We need to enable the feature “Office SharePoint Server Publishing Infrastructure“. This will enable publishing structure on site collection level and is needed before we are gonna enable the publishing feature at site level.

Next we go again to “Site Settings” and click on “Site features“. There we enable the site feature “Office SharePoint Server Publishing“. After enabling both features your created site will have publishing capabilities.

Be aware, one feature is on Site Collection the other one is on Site

Here is the topic show you how to convert your Team Site to a Publishing Site