- This is the same error I have been getting , when I tried to run my hardhat
EPERM: operation not permitted, lstat 'Library/VoiceTrigger/SAT'
Getting this same on eas build and deploy.
From what I can tell... What happened is that you ran npx run from your home directory, so the run package attempted to walk every folder under ~/Library and hit the protected ~/Library/VoiceTrigger/SAT, which macOS’s privacy/TCC subsystem refuses to let you inspect and returns EPERM.
To fix this, change into your Hardhat project directory (e.g. cd /path/to/SUTAN-HARDHAT) and invoke Hardhat directly... either with npm run deploy (if you’ve defined a deploy script in your package.json) or with npx hardhat run scripts/deploy.js --network <network>. That way Node won’t wander into macOS system folders and you’ll avoid the EPERM.
(If you ever fully need to access protected directories you can grant Terminal Full Disk Access in System Settings -> Privacy & Security, but I don't think that is necessary for normal Hardhat use.)
Admittedly, I am unsure if I am correct here, but I thought I'd give my thoughts in case it works. :)