Cannot specify node_js version for ruby project on OSX

#1

Recently added OSX support for the ruby repository https://github.com/metanorma/isodoc/blob/master/.travis.yml

But this project also require nodejs (it called from ruby side via simple system call)
And faced with a problem that node --version for linux return 8.x version but for OSX it return 6.x

  • Is this issue or there is no guarantee that for language: ruby project node_js: “8” will specify this version of node
  • Maybe there is some workaround exists?

Update

BTW travis lint return

Warnings for .travis.yml:
[x] specified node_js, but setting is not relevant for ruby
#2

Use nvm to manage Node.js versions on non-Node.js jobs; e.g.,

before_install:
  - nvm install 8
1 Like