How to install ng executable for Angular

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

0 Comments

Post a Comment

Post a Comment (0)

Previous Post Next Post
NERV Open Source
Building production Spring Boot systems?

Explore NERV — open-source Java libraries for audit trails, persistence, exception handling, and reliable event-driven architecture.