Thank you for the hint. Increasing the log verbosity in the general configuration helped me identifying the problem.
The solution:
The .csproj file had a section which ensured that node packages are installed.
Executing "npm install" manually finishes in 10 seconds, but in NCrunch it takes 2,5 minutes.
I added
Code:And !('$(NCRUNCH)' == '1')
to the following section's Condition and NCrunch works fine as usual ;-)
Code:
<Target Name="DebugEnsureNodeEnv" BeforeTargets="Build" Condition=" '$(Configuration)' == 'Debug' And !Exists('$(SpaRoot)node_modules') ">
<!-- 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." />
<Message Importance="high" Text="Restoring dependencies using 'npm'. This may take several minutes..." />
<Exec WorkingDirectory="$(SpaRoot)" Command="npm install" />
</Target>