Home > Blockchain >  How to fix permission being denied when installing Angular Client on MacOS?
How to fix permission being denied when installing Angular Client on MacOS?

Time:06-22

I am a new coder trying to get started with Angular and Node following a tutorial on Udemy. I have successfully (I think) installed Node.js and I'm running version 16.15.1 but when I try to install the angular client it fails every time (screenshot attached). Please could someone point out where I am going wrong?

FYI my name is Manraj and I am the only user on my mac (hence I am an admin) so that is why it appears in the code as Manrajs MBP as that is the name of my laptop.

A screenshot of my attempt to run the code in terminal

CodePudding user response:

You need root privileges. Just use sudo.

sudo npm install -g @angular/cli
  • Related