Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to run ng build as a Custom Process in Qt Creator?
QtWS25 Last Chance

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

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 2 Posters 367 Views
  • 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 Offline
    C Offline
    cyrilfr
    wrote on last edited by
    #1

    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_1980A 1 Reply Last reply
    0
    • C cyrilfr

      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_1980A Offline
      aha_1980A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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
      1
      • aha_1980A aha_1980

        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

        C Offline
        C Offline
        cyrilfr
        wrote on last edited by
        #3

        @aha_1980 It runs and complete normally.

        1 Reply Last reply
        0
        • C Offline
          C Offline
          cyrilfr
          wrote on last edited by
          #4

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

          aha_1980A 1 Reply Last reply
          2
          • C cyrilfr

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

            aha_1980A Offline
            aha_1980A Offline
            aha_1980
            Lifetime Qt Champion
            wrote on last edited by
            #5

            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
            1

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved