Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Solved How to run ng build as a Custom Process in Qt Creator?

    General and Desktop
    2
    5
    140
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      cyrilfr last edited by

      Hi,

      I would like to run the Angular ng build command as a Custom process but it says Could not start process where I can perfectly run it manually in a Terminal.

      The ng command is actually a symlink in /usr/bin/ng pointing to ~/MyProject/ui/node_modules/@angular/cli/bin/ng and it's a Node.js script I suppose (I'm quite new with it).

      Is there a way to make it works? Do I need to specify env variables?

      aha_1980 1 Reply Last reply Reply Quote 0
      • aha_1980
        aha_1980 Lifetime Qt Champion @cyrilfr last edited by

        Hi @cyrilfr,

        in newer Creator versions, you can right-click on a file in the project tree, and Open Terminal with Build Environment from there.

        What happens if you run ng build from such a terminal?

        Regards

        Qt has to stay free or it will die.

        C 1 Reply Last reply Reply Quote 1
        • C
          cyrilfr @aha_1980 last edited by

          @aha_1980 It runs and complete normally.

          1 Reply Last reply Reply Quote 0
          • C
            cyrilfr last edited by

            OK I found that I've to set ng as command and build as arguments of course...

            aha_1980 1 Reply Last reply Reply Quote 2
            • aha_1980
              aha_1980 Lifetime Qt Champion @cyrilfr last edited by

              Hi @cyrilfr,

              glad you solved it. So please mark this topic as SOLVED too. Thanks!

              Qt has to stay free or it will die.

              1 Reply Last reply Reply Quote 1
              • First post
                Last post