Update npm on Travis CI before running tests

Otherwise, dependencies specified using the caret (^) syntax won’t resolve under older Node.js versions, see https://github.com/npm/npm/issues/4849.