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

Closes #2770