Envy has its uses. It reveals what you want. It's a good thing to know yourself and what you want out of life.
Envy is purely negative in a social sense, it makes you fight people just because they have stuff you want. It is beneficial to your own genes but not beneficial to humanity.