Can any one help me to integrate AI in mac m1 with Appium

i tried to install AI plug in in with appium in mac m1 as this page

but i got error
Original error: Could not load your custom find module ‘ai’. Did you put it somewhere Appium can ‘require’ it? Original error: Error: Cannot find module ‘canvas’