How to run ng build as a Custom Process in Qt Creator?
-
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