Angular-cli: Unable to build angular-cli application using TeamCity

Created on 14 Feb 2017  路  3Comments  路  Source: angular/angular-cli

Please provide us with the following information:

OS?

Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)

Windows 7

Versions.

Please run ng --version. If there's nothing outputted, please run in a Terminal: node --version and paste the result here:
v7.5.0

Repro steps.

Was this an app that wasn't created using the CLI? What change did you do on your code? etc.
No changes

The log given by the failure.

Normally this include a stack trace and some more information.

Mention any other details that might be useful.

I created the project using angular cli beta 28.3. I am able to build the application and host it on IIS. But when I want to do this automatically using TeamCity, I am facing issues.
Steps that I followed:

  • Downloaded and installed jonnyzzz.node.zip file and referred it in TeamCityDataDirectory/plugins
  • Then install -g angular cli
  • ng build

Are there any other steps that need to be followed?


Thanks! We'll be in touch soon.

Most helpful comment

In this case the proper way to do this is make sure your packages.json has a script for "build" pointing at ng build. Then you can call this step from npm using npm run-script build, which will in turn trigger ng build from within the correct environment to resolve ng.

See also, http://stackoverflow.com/a/43444190/3794873

All 3 comments

I'm sorry but this doesn't sound like a CLI issue, it's more of a general support one.

I don't know anything about TeamCity so I can't help you. Stack Overflow is your best bet to get an answer.

In this case the proper way to do this is make sure your packages.json has a script for "build" pointing at ng build. Then you can call this step from npm using npm run-script build, which will in turn trigger ng build from within the correct environment to resolve ng.

See also, http://stackoverflow.com/a/43444190/3794873

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

_This action has been performed automatically by a bot._

Was this page helpful?
0 / 5 - 0 ratings

Related issues

IngvarKofoed picture IngvarKofoed  路  3Comments

rwillmer picture rwillmer  路  3Comments

gotschmarcel picture gotschmarcel  路  3Comments

brtnshrdr picture brtnshrdr  路  3Comments

JanStureNielsen picture JanStureNielsen  路  3Comments