Skip to content

Commit

Permalink
Added npm install --force
Browse files Browse the repository at this point in the history
  • Loading branch information
aaltotsky committed Aug 31, 2023
1 parent 3718072 commit 52d2923
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions UI/Application/Application.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
</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" />
<Exec WorkingDirectory="$(SpaRoot)" Command="npm install --force" />
</Target>

<Target Name="Testing Production" BeforeTargets="Build" Condition=" '$(Configuration)' == 'TestingProduction' ">
Expand All @@ -90,15 +90,15 @@
<Message Importance="high" Text="Restoring dependencies using 'npm'. This may take several minutes..." />
<Exec WorkingDirectory="$(SpaRoot)" Command="node --version" />
<Exec WorkingDirectory="$(SpaRoot)" Command="npm --version" />
<Exec WorkingDirectory="$(SpaRoot)" Command="npm install" />
<Exec WorkingDirectory="$(SpaRoot)" Command="npm install --force" />
<Exec WorkingDirectory="$(SpaRoot)" Command="npm run build:full:prod" />
</Target>

<Target Name="PublishRunWebpack" AfterTargets="ComputeFilesToPublish">
<!-- As part of publishing, ensure the JS resources are freshly built in production mode -->
<Exec WorkingDirectory="$(SpaRoot)" Command="node --version" />
<Exec WorkingDirectory="$(SpaRoot)" Command="npm --version" />
<Exec WorkingDirectory="$(SpaRoot)" Command="npm install" />
<Exec WorkingDirectory="$(SpaRoot)" Command="npm install --force" />
<Exec WorkingDirectory="$(SpaRoot)" Command="npm run build:full:prod" />

<!-- Include the newly-built files in the publish output -->
Expand Down

0 comments on commit 52d2923

Please sign in to comment.