Change Task Runner Explorer command

594 views Asked by At

In Visual Studio 2019 I have installed the extension call NPM Task Runner. 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. 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.

1

There are 1 answers

0
Rabel Obispo On BEST ANSWER

This fixed the problem for me.

  1. Tools > Options > Projects and Solutions > Web Package Management > External Web Tools

  2. Move the $(PATH) entry to the 2nd position in the list by using the up arrow button.

Comment

Post: Executes wrong version of nodejs