How I make my Jenkins Slave Windows Service recognize the global modules installed by npm
I was trying to setup a Jenkins Slave on a Windows machine which will get protractor to run a series of functional tests that the team had written to test our AngularJS application.
Idea was that whenever that there was a code change being committed to the master branch on our GitHub repository, the Jenkins Slave will be called upon to checkout the latest codes and get protractor to run the functional tests base from a configuration.js
file in the codebase.
One of the hurdles that I encountered was that my Jenkins Slave Windows Service was not able to recognize the executables from Node.js modules that were installed by npm globally, which in this case was the protractor executable.
This post describes the steps that I took in order to make Jenkins Slave Windows Service recognize the global modules installed by npm.
Follow us