Using Angular template of VS 2017, I created a project.
Then when I tried to build it, it showed this message in the output window:
Build delayed until Bower/npm packages finish restoring.
And the problem is that it's stuck in this state for hours. I checked and noticed that the solution folder's size is not increased. I also checked my internet usage and there is no send or receive.
VS version: Visual Studio Community 2017 15.5.2
What should I do?
What I did:
bin
and obj
folders completely (not just a clean build/rebuild)1.Try this and see if it helps.
Not 100% sure if that was the exact trigger, "Dependencies -> npm" in solution explorer was also complained about node-sass not being installed (and node_modules/node-sass
was not present). Running yarn
did not install anything because it thought it already was installed (because it was listed in packages.json and yarn.lock). Installing a newer version of node-sass populated node_modules/node-sass. So it might also be a problem that is solved by running
find . -name node_modules -print \
| grep -v /node_modules/.*/node_modules \
| tr '\012' '\000' | xargs -0 rm -r
1
From a git bash prompt: find . -name node_modules -prune -o -iname bin -print0 -o -iname bin -print0 | xargs -0 --no-run-if-empty rm -r
The following worked for me:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With