Troubleshooting OpenSSL on Windows and MacOS

Every so often, after a reboot most likely, I can't npm run watch or npm run build, I get some error about ssl. Off to StackOverflow! says to run this command export NODE_OPTIONS=--openssl-legacy-provider but sometimes I'm on windows, so that's not the right command. We have to keep digging.

The solution on windows (also from is to use set - set "NODE_OPTIONS=--openssl-legacy-provider"