New to react and am having trouble with the yarn install command where i get the following error:
Error: Cannot find module '/Users/MacPro/Desktop/Developer/React/.yarn/releases/yarn-berry.js'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:1029:15)
at Function.Module._load (internal/modules/cjs/loader.js:898:27)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
at internal/main/run_main_module.js:17:47 code:'MODULE_NOT_FOUND', requireStack: []
Anything related to the yarn function returns this error. Have tried uninstalling and re-installing through homebrew but always results in this. npm install -g yarn says it is updated and installed as well.
Any help?
Also, it worked fine a few weeks ago.
Thank you in advance.