Error While flashing code

So I ran this command and it worked for me (I was able to compile and flash code to the boron on Workbench successfully):

particle update-cli

For others that come across this issue you can try the same or if yours didn't work, you can view this site.

I also re-installed Particle Workbench from this guide.

Hope this helps!!