madskristensen / NpmTaskRunner

Visual Studio extension
Other
88 stars 32 forks source link

Cannot find commands in PATH #63

Open davidsk opened 6 years ago

davidsk commented 6 years ago

Installed product versions

Description

npm scripts called with the task runner cannot find commands available on the path and fails. Calling npm run xcopy from a command window completes successfully.

Steps to recreate

  1. Create a Visual Studio ASP.Net Core Project
  2. Add a javascript file called 'javascript.js'
  3. Add a package.json
  4. Add the following task to the npm scripts: "xcopy": "xcopy javascript.js wwwroot\\"
  5. Open the Task Runner, select and run the 'xcopy' command

Current behavior

The script errors with the message "'xcopy' is not recognized as an internal or external command, operable program or batch file."

Expected behavior

The script should complete successfully

Additional Information

This looks like the issues reported in #49 but adjusting the External Web Tools options to prioritise the system path does not seem to have any effect

npm task runner