How do I cache global NPM packages on Travis CI?

Locally installed packages are cached via:

# .travis.yml
  - node_modules

But how do I cache globally installed packages ($ npm install -g <...>) to speed up my builds?

Source: ubuntu

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.