TeamCity build runner not recognizing executable

后端 未结 8 1587
悲哀的现实
悲哀的现实 2020-12-25 13:12

I\'m trying to run a simple gruntfile.js as part of my build in TeamCity. However, even after installing grunt and grunt-cli as global node packages, TeamCity s

8条回答
  •  长情又很酷
    2020-12-25 13:45

    Here is a complement to Christopher's answer (I don't have enough reputation to make a comment).

    In case you don't want to create a user on build server, you can write full path to execute a npm package. Here is a command line runner to run Weyland without creating dedicated user on build server:

    • Command executable: "C:\Program Files\nodejs\node.exe"
    • Command parameters: c:\users\Administrator\AppData\Roaming\npm\node_modules\weyland\bin\cli.js build

    BTW, it seems that the installer of Node.js has another solution. Unfortunately, it's trimmed!

    Here is the screenshot of Node.js installer:

提交回复
热议问题