0

When I install Angular, an error occurs:

Admin@Admin-PC MINGW32 ~
$ npm install -g @angular/cli
Error: EPERM: operation not permitted, mkdir 'C:\Users\AppData'
TypeError: Cannot read property 'get' of undefined
...

The error shows that, "operation not permitted". However, I'm sure that I do this with Admin authority.

I have never met this type of error, so I guess it tells me to do mkdir 'C:\Users\AppData' command. However, doing that command also meets a permission denial error as well.

Huy Ngo
  • 136
  • 8
  • https://stackoverflow.com/questions/34600932/npm-eperm-operation-not-permitted-on-windows – Sachila Ranawaka Jul 19 '17 at 04:23
  • @sachilaranawaka I had read that question already and did as the answer says, but it does not work. – Huy Ngo Jul 19 '17 at 04:43
  • Please add relevant, obvious details: `node --version`, `npm --version`, Windows version (Computer -> Properties), MinGw version. Also, not that the path mentioned in the error is special and should not be created. It should be `C:\Users\username\AppData`. Finally, why run this through MinGw at all? Use `cmd.exe` or `Powershell.exe`. And lastly try creating the thing directly in that situation... – Aluan Haddad Jul 20 '17 at 10:37

0 Answers0