Project build halts on: “Build delayed until Bower/npm packages finish restoring.”

前端 未结 5 1547
忘掉有多难
忘掉有多难 2021-02-12 12:26

In VS 2017, I created a new ASP.NET Core Web Application using the Angular template.

The project however does not run, it gets stuck on:

Build delayed un         


        
5条回答
  •  南旧
    南旧 (楼主)
    2021-02-12 13:05

    I had a similar problem and I followed the below steps to get around it.

    Disable Package restore:

    1. Go to Tools -> Options -> Project and Solutions -> Web Package Management -> Package Restore.
    2. Set False to 'Restore on Project Open' and 'Restore on Save'

    After disabling, I opened a terminal and manually installed all the packages. I used Yarn to install the packages and faced no problems.

    Visual Studio often halts during project builds because of timeouts. To get around that, I used the command yarn --network-timeout 60000.

    Hope this helps!

提交回复
热议问题