nodejs:无法使用本地系统帐户运行gulp

时间:2016-08-19 11:47:47

标签: node.js gulp teamcity

我在本地和全球安装了gulp。我可以在正常的命令行中运行gulp,但是从Teamcity服务(在Windows的帐户本地系统下运行)调用gulp失败。

enter image description here

要重现,我使用来自PSTools(https://technet.microsoft.com/en-au/sysinternals/bb897553)的psexe来打开带有本地系统帐户的cmd:

enter image description here

我可以运行npm

enter image description here

但在全局执行gulp时会收到错误

enter image description here

注意:

我可以通过转到项目文件夹并运行node_modules\.bin\gulp.cmd -v

来执行本地gulp

enter image description here

有什么想法吗?

0 个答案:

没有答案