no

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'...

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

Related

frontend 8892649492963213858

Post a Comment Default Comments

Outsourcing

Are you looking for freelancers in the Philippines? Get in touch.

Donations

If you like what I do, you can support this channel by buying me a coffee. I would be grateful for your contribution! Your donations will help me create more FREE online courses and learning materials for programmers and remote workers.

item