That error indicates a permissions problem when trying to install one of the node modules (api or sentinel). In this case the /tmp directory was incorrect.
It was “drwxr-xr-t” but needs to be “drwxrwxrwt”.
To fix this execute this: “chmod 1777 /tmp”.