4

By default does travis install npm packages using package.json globally or locally? By some packages there can be differences, that's why I am asking.

1

1 Answer 1

10

The npm install command will install them locally. (If you read the log expanding the git clone ... part, you'll see that it cd username/repo then it will launch the npm install command).

If you need some packages installed globally, add this to your .travis.yml file:

before_install:
- npm install -g your-package-name

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.