0
votes

I am trying to install the Angular 6 CLI but I get this message C:\Users\baigk\AppData\Roaming\npm\ng -> C:\Users\baigk\AppData\Roaming\npm\node_modules@angular\cli\bin\ng npm WARN rollback Rolling back [email protected] failed (this is probably harmless): EPERM: operation not permitted, lstat 'C:\Users\baigk\AppData\Roaming\npm\node_modules@angular\cli\node_modules\fsevents\node_modules' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules@angular\cli\node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

1
what was the command you used to install it ?Nadhir Falta
I reinstalled the npm using >npm install npm -g. Then I am getting this error C:\Users\baigk>npm install -g @angular/cli C:\Users\baigk\AppData\Roaming\npm\ng -> C:\Users\baigk\AppData\Roaming\npm\node_modules\@angular\cli\bin\ng npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\@angular\cli\node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}) + @angular/[email protected] updated 1 package in 10.523sKawlym Baygh
I used npm install -g @angular/cliKawlym Baygh
what do you get when you do: npm -v and node -v in the command line ?Nadhir Falta
C:\>npm -v 6.7.0 C:\>node -v v10.15.0Kawlym Baygh

1 Answers

0
votes

EPERM: operation not permitted happens usually when command not runned with Administrator or Antivirus not allowing it. Turn off Antivirus and run same command as Administrator again.