Fix newline in npm.py.

See #3961.