In Visual Studio 2019 I have installed the extension call NPM Task Runner.
When I run a the build command the output is:
cmd.exe /c npm run build --color=always
How do I change that to:
npm run build --color=always
Because when I run the first one I get an error.
How can I fix the error or change the command.
P.S.: When I run the command like this npm run build --color=always
in the console it works.
This fixed the problem for me.
Tools > Options > Projects and Solutions > Web Package Management > External Web Tools
Move the $(PATH) entry to the 2nd position in the list by using the up arrow button.