er should be err

See also: https://github.com/npm/npm/issues/4520