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 nhận xét:
Đăng nhận xét