I’m having errors only in one of my test tasks, particularly on Windows with the latest version of node. I googled it and apparently I need to run before install this
sudo npm install -g node-gyp
But how do I set my
.travis.yml to run that just on windows? I suppose I don’t need
sudo, but has windows environment admin rights?
My error log is this one:
does this work? I suppose not because it is bash
before_install: - if [ "$TRAVIS_OS_NAME" = "windows" ]; then npm install -g node-gyp; fi - if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo npm install -g node-gyp; fi