Fix Travis CI and npm configuration