Node.js 从TeamCity跑Bower?

Node.js 从TeamCity跑Bower?,node.js,teamcity,bower,Node.js,Teamcity,Bower,我有一个基于Windows的团队城市,共分3步。我希望包括一个bower步骤,以便在项目中安装bower.json中的所有依赖项,而不是签入lib文件夹 目前的步骤是: NPM(安装,安装grunt cli,安装grunt) 咕噜声 业力 我对node或teamcity不太熟悉,尝试了以下操作。在(1)中增加了“安装凉亭”。在(1)使用“bower--force latest”运行node.js后添加了一个新步骤,但遇到了各种错误。有人能给我一个循序渐进的解释,说明如何让bower运转,或者我是

我有一个基于Windows的团队城市,共分3步。我希望包括一个bower步骤,以便在项目中安装bower.json中的所有依赖项,而不是签入lib文件夹

目前的步骤是:

  • NPM(安装,安装grunt cli,安装grunt)
  • 咕噜声
  • 业力
  • 我对node或teamcity不太熟悉,尝试了以下操作。在(1)中增加了“安装凉亭”。在(1)使用“bower--force latest”运行node.js后添加了一个新步骤,但遇到了各种错误。有人能给我一个循序渐进的解释,说明如何让bower运转,或者我是否应该这样做吗?

    找到了答案:

    1) installed grunt and bower onto the server
    2) updated the PATH environment variables to include bower
    3) rebooted the build box
    4) added a command line build step running bower from the correct project working directory: bower install -f
    
    它起作用了!已安装所有bower软件包。然后,karma单元测试可以正常工作,而不会抱怨依赖性!我现在可以从提交中删除lib文件夹