The command “bower install” exited with code 9009.

I just upgraded to Visual Studio 2017 and received the follow error when trying to publish a .Net Core site to our server.
The command "bower install" exited with code 9009.
The follow command worked for me to fix this (installing bower globally)
  • npm install -g bower
If that doesn't work, try these steps: