I Reinstalled Node.js and Yarn. Now I am getting this error.
My environment information is:
Node: v8.12.0 NPM: 6.4.1 Yarn: 1.10.1
Node: v8.12.0
NPM: 6.4.1
Yarn: 1.10.1
I had the same error on my Mac.
I just re-downloaded the installer from the Node.js website. This should reinstall all the dependencies and make sure that all paths are valid.
https://nodejs.org/en/download/