GitHub Actions: Error when running npm install -g bats

Hi,

This is my first time using Git Actions. I was using the tutorials YML file to create my first workflow. When the workflow runs npm install -g bats, I get this error:
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules.

Would anyone know why I’m getting this error?