tag:help.appveyor.com,2012-11-13:/discussions/problems/14619-build-error-executing-npm-command-in-net-core-csproj-targetAppVeyor: Discussion 2018-10-19T08:18:48Ztag:help.appveyor.com,2012-11-13:Comment/454409922018-06-08T06:54:56Z2018-06-08T06:54:57ZBuild error executing npm command in .NET Core csproj Target<div><p>Hello everyone!. I am having troubles trying to execute npm tasks on BeforeBuild target:</p>
<p>This are the tasks:</p>
<p><br>
<br></p>
<p></p>
<p>The second one "BuildClient", is executing the command npm run build that internally is this command:</p>
<p>"build": "npm run build:dll && npm run build:prod"</p>
<p>Visual studio is building the project fine but I get an error in AppVeyor: npm run build exited with code 2.</p>
<p>Here is our appveyor.yml file :</p>
<p><a href="https://github.com/Xabaril/BeatPulse/blob/beatpulse-ui-v2/appveyor.yml">https://github.com/Xabaril/BeatPulse/blob/beatpulse-ui-v2/appveyor.yml</a></p>
<p>Thank you very much!.</p></div>Carlos Landerastag:help.appveyor.com,2012-11-13:Comment/454409922018-06-08T08:06:17Z2018-06-08T08:06:17ZBuild error executing npm command in .NET Core csproj Target<div><p>I see your <a href="https://ci.appveyor.com/project/Xabaril/beatpulse/build/217">last build</a> is good. Do you still need help?</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/454409922018-06-08T08:28:21Z2018-06-08T08:28:22ZBuild error executing npm command in .NET Core csproj Target<div><p>I fixed it thank you very much for your help! :)</p></div>Carlos Landeras