Detect and warn if NPM version is in 1.x series.

Closes #2770
Does't npm do "2.x.x-alpha" versions or other variants of that? Should probably use [semvar.gt](https://github.com/npm/node-semver) to make sure we don't miss anything