How to set command line permissions after npm install

command linepermissionterminalverify

I am trying to run the gatsby-cli on a fresh install of macOS.

I downloaded npm and node from https:node.js.org/en.

Then installed the packages.

Then installed npm i -g gatsby-cl.

However, when I try to run a command like gatsby build I get a string of errors like

"libpangoft2-1.0.0.dylib" cannot be opened because the developer cannot be verified.

I got into System Preferences > Security & Privacy > Allow Anyway but the execution sequence stops and the Allow command is not saved.

How to I grant permissions to these executables so I can run gatsby commands without the popups?

Best Answer

Adding Terminal permissions in System Preferences > Security & Privacy > Privacy corrects this issue.

enter image description here