提交 7f138ad3 编写于 作者: 麦壳饼's avatar 麦壳饼

加入 npm config set registry https://registry.npmmirror.com ;export...

加入 npm config set registry https://registry.npmmirror.com ;export NODE_OPTIONS=--openssl-legacy-provider;
上级 45426d0d
......@@ -106,11 +106,11 @@
</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 --legacy-peer-deps" />
<Exec WorkingDirectory="$(SpaRoot)" Command="npm config set registry https://registry.npmmirror.com ;export NODE_OPTIONS=--openssl-legacy-provider;npm install --legacy-peer-deps" />
</Target>
<Target Name="PublishRunWebpack" AfterTargets="ComputeFilesToPublish" Condition="'$(Configuration)' == 'Release'">
<!-- As part of publishing, ensure the JS resources are freshly built in production mode -->
<Exec WorkingDirectory="$(SpaRoot)" Command="npm install --legacy-peer-deps" />
<Exec WorkingDirectory="$(SpaRoot)" Command="npm config set registry https://registry.npmmirror.com ;export NODE_OPTIONS=--openssl-legacy-provider;npm install --legacy-peer-deps" />
<Exec WorkingDirectory="$(SpaRoot)" Command="npm run build" />
<!-- Include the newly-built files in the publish output -->
<ItemGroup>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册