travis-build
travis-build copied to clipboard
Add option `node_modules` for node.js builds
To turn off manipulating $PATH
See https://github.com/travis-ci/travis-ci/issues/8813, https://github.com/travis-ci/travis-ci/issues/5092.
The option node_modules is probably too vague. Maybe node_modules_bin_in_path, though this may be too long.
Anything we can help with to get this forward?
Thanks for the ping. I'll have a look into this next week.
I'm sorry, I'll need a little longer to look into this as I wanted to talk to our friends at NPM for some advice.
@joshk any updates in this regard?
My workaround to this has been to prepend PATH to the rvm command:
- PATH="/bin:$PATH" rvm use $(< .ruby-version) --install --binary --fuzzy
Any update on this?
It took me a while to find the source of the problem of why commands (e.g. which or npm etc.) were working in my project root, but any other directory they were failing.
My workaround is to remove the entry from PATH with a cross-platform compatible line like this:
PATH=$(echo "$PATH" | sed 's/.\/node_modules\/.bin://')