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: https://github.com/ethereum/mist/issues/4009

sudo yarn upgrade
then
yarn build
and it worked