I have gulp installed in both locally and globally. I can run gulp in normal command line, however calling gulp is failed from Teamcity service (which is running under Windows's account Local System).
To reproduce, I am using psexe from PSTools (https://technet.microsoft.com/en-au/sysinternals/bb897553) to open cmd with local system account:
I can run npm
but get the error when executing gulp globally
NOTE:
i can execute the local gulp by going to the project folder and run node_modules\.bin\gulp.cmd -v
Any idea pls?