Error Yarn Build - Resolved

Install Local Sylius 1.10 MacOs Mamp

Errors when I did yarn build :

‘buildShop’ errored
Error in plugin ‘gulp-chug’

‘build’ errored
error Command failed with exit code 1.

Tried many solution over Github and Stack but that one worked for me with sudo:

sudo yarn upgrade
yarn build
and it worked