What, about someone's upbringing, turns them into a narcissist?

Also general discussion, but the tag doesn't exist.

We know how narcissists behave, this subreddit even points to resources telling us how, but I'd like to know how they get there, assuming they aren't simply born that way.

What kind of treatment, environment and teachings turn someone into a narcissist?