I've tried the CMD 'set NODE_OPTIONS=--openssl-legacy-provider' on Windows from the this post, but now it wrecked my whole dev enviroment and getting this error on a yarn dev or yarn build: C:\Program Files\nodejs\node.exe: --openssl-legacy-provider is not allowed in NODE_OPTIONS
Also downgraded to node v16, but still getting the same error. Please help how to UNSET this: set NODE_OPTIONS=--openssl-legacy-provider.