I have a small native Node add-on written with Rust, using Neon for bindings. I need to install Node and nvm manually in order to execute the
neon compile command which builds the binary.
After much difficulty I have managed to get Travis installing Node via nvm and AFAICT the path to the Node exe is in PATH, however when
yarn runs to install dependencies for the project it can’t find Node. If I run
node --version it errors with “node command not found”. So clearly I am not adding Node to the PATH correctly, but I don’t see how.
before_install command: https://github.com/sdgluck/node-crossterm/blob/master/.travis.yml#L106
Most recent Travis build: https://travis-ci.com/sdgluck/node-crossterm/jobs/19277779
Some fresh eyes would be much appreciated. How can I get yarn to see Node?