I’ve just finished setting up a new unit and now I’m trying to download some of my old angular projects. To my disappointment, I’ve encountered a rather similar but different error from before, which unfortunately, I forgot what I did to solve 🙁
So I’m blogging it now.
Right after installing node you’ll have access to npm binary but not ng. To install the ng binary we run:
npm install -g @angular/cli
And then when I tried to run: ng serve, I got:
npm ERR! Error: EPERM: operation not permitted, scandir
Solution (run the following commands):
npm cache verify npm install -g @angular/cli --force