I am trying to install angular cli on macOS Big Sur v11.6 and npm version 8.1. This is the command I am using as given in Angular Official documentation
sudo npm install -g @angular/cli
I am getting this error despite logging in as root
npm ERR! Error: EPERM: operation not permitted, lchown '/usr/local/bin/sentinelctl'
npm ERR! [Error: EPERM: operation not permitted, lchown '/usr/local/bin/sentinelctl'] {
npm ERR! errno: -1,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'lchown',
npm ERR! path: '/usr/local/bin/sentinelctl'
npm ERR! }
It fails in system call lchown
When I tried to enter
lchown in the terminal, it says Command not found.
Can anybody help me?