I can’t get Claude 3.7 Sonnet to execute commands without my approval. But 3.5 does it fine.
90% chance is you have a yolo prompt in the yolo settings. if you remove that and add npm or npm list as allowed commands then it will work.