Permission error when trying to install nodes

When doing a npm install... in terminal, did you first do a cd .node-red?

If so, go to your user folder (i.e. Users/Paul) and press the shift-command-period keys. This will reveal all the hidden files/folders. Hilight the folder .node-red and do a Get Info (command-i)

Your user should have Read & Write priveledge to it and all it's sub folders.