Description
π Search Terms
Microsoft.TypeScript.MSBuild error MSB6006: "/usr/bin/nodejs" exited with code 1
π Version & Regression Information
- This is a crash
- This changed between versions 5.0.4 and 5.2.2
β― Playground Link
No response
π» Code
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:7.0 AS build
WORKDIR /src
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
nodejs \
npm \
&& rm -rf /var/lib/apt/lists/*
COPY ["*.csproj", "package*", "tsconfig.json", "."]
RUN --mount=type=cache,id=npm,target=/root/.npm --mount=type=cache,id=nuget,target=/root/.nuget/packages dotnet restore
RUN --mount=type=cache,id=npm,target=/root/.npm --mount=type=cache,id=nuget,target=/root/.nuget/packages npm install
π Actual behavior
[xxx build 8/10] RUN --mount=type=cache,id=npm,target=/root/.npm --mount=type=cache,id=nuget,target=/root/.nuget/packages dotnet build:
10.86 MSBuild version 17.7.3+8ec440e68 for .NET
12.15 Determining projects to restore...
12.47 All projects are up-to-date for restore.
13.19 /root/.nuget/packages/microsoft.typescript.msbuild/5.2.2/tools/Microsoft.TypeScript.targets(485,5): error MSB6006: "/usr/bin/nodejs" exited with code 1. [/src/xxx.csproj]
13.21
13.21 Build FAILED.
13.21
13.21 /root/.nuget/packages/microsoft.typescript.msbuild/5.2.2/tools/Microsoft.TypeScript.targets(485,5): error MSB6006: "/usr/bin/nodejs" exited with code 1. [/src/xxx.csproj]
13.21 0 Warning(s)
13.21 1 Error(s)
13.21
13.21 Time Elapsed 00:00:02.13
π Expected behavior
build success
Additional information about the issue
No response