Fix newline in npm.py.

See #3961.
Merge pull request #3966 from holmboe/newline-3961

Fix newline in npm.py.