Unknown developer
Unknown developer

Reputation: 5950

npm install as a build step in TeamCity

I am studying a TeamCity project which has to do with a .NET application with Angular at the frontend. What it does not make sense to me is I cannot find anywhere npm install. For example: enter image description here

The thing is in case I add a dependency in package.json which requires update of node_modules folder, everything works fine as far as the artifacts are concerned and Angular finds the files it needs!! But how node_modules folder on TeamCity is updated? Sorry, for being a little bit abstract; honestly, I cannot find npm install anywhere.

Upvotes: 1

Views: 11365

Answers (1)

CodeBreaker
CodeBreaker

Reputation: 487

I would highly recommend looking at the TeamCity Node Plugin available at https://github.com/jonnyzzz/TeamCity.Node. The plugin, which is also available via the TeamCity Plugin repository for an integrated installer, will allow you to use NVM to install a specific version of Node as well as run NPM to install other dependencies, etc.

I hope this helps!

Upvotes: 2

Related Questions