Fix *occassional* npm install failures on Travis CI

https://github.com/travis-ci/travis-ci/issues/2244#issuecomment-55473829
mentions creating the npm directory manually as a temporary workaround
Merge pull request #1824 from maurizi/fix-travis-npm

Fix Travis CI npm install issues