Tag: tfs

TFS生成找不到Grunt

我在我们的TFS构build服务器上安装了npm和grunt。 我使用npm install -g grunt-cli安装了grunt-cli ,然后能够在以我自己的身份login时从命令行运行grunt deploy 。 出TFS生成作为tfsservice用户虽然运行,当它试图做的grunt部署它会得到一个错误消息: 'grunt' is not recognized as an internal or external command, operable program or batch file. 所以,当我自己在构build服务器上login时,如果我运行命令提示符作为tfsservice我得到相同的错误。 所以我尝试从该命令提示符下执行npm install -g grunt-cli ,它看起来已经正确安装并在C:\ Users \ tfsservice \ AppData \ Roaming \ npm中创build了grunt文件,但是仍然得到相同的错误运行grunt部署时 。 所以它看起来像grunt-cli没有得到安装tfsservice ? 当我得到tfsservice%homepath%时,我发现它被设置为\ Windows \ system32 ,而不是预期的\ Users \ tfsservice ; 也许这是一个服务帐户有什么关系呢? 我发现类似的问题已经被要求在Team City中使用grunt-cli ,但是它build议使用Team […]