This is my first time trying to use Pipelines. I am building a .Net Core application. I am getting this error from the Pipelines build:
error : Node.js is required to build and run this project. To continue, please install Node.js from https://nodejs.org/, and then restart your command prompt or IDE.
I see that this error is coming from my .csproj file. The MSbuild Exec seems to not be working.
<Target Name="DebugRunWebpack" BeforeTargets="Build" Condition=" '$(Configuration)' == 'Debug' And !Exists('wwwroot\dist') ">
<!-- Ensure Node.js is installed -->
<Exec Command="node --version" ContinueOnError="true">
<Output TaskParameter="ExitCode" PropertyName="ErrorCode" />
</Exec>
<Error Condition="'$(ErrorCode)' != '0'" Text="Node.js is required to build and run this project. To continue, please install Node.js from https://nodejs.org/, and then restart your command prompt or IDE." />
Is this a Pipeline issue, or a Docker issue? Does anyone know how to get around this issue?
I'd make sure that the image you're using has node installed, if that doesn't help I would need some additional information to help debug your issue.
Could you share your YML and raw Pipeline Log?
Thanks,
Peter
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.