How to run ng build as a Custom Process in Qt Creator?
-
wrote on 27 Sept 2019, 10:10 last edited by
Hi,
I would like to run the Angular
ng build
command as a Custom process but it saysCould 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?
-
Hi,
I would like to run the Angular
ng build
command as a Custom process but it saysCould 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?
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
-
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
-
wrote on 27 Sept 2019, 12:33 last edited by
OK I found that I've to set
ng
as command andbuild
as arguments of course... -
Hi @cyrilfr,
glad you solved it. So please mark this topic as SOLVED too. Thanks!
1/5