Reputation: 147
I have recently installed nodejs (version 6.2.1) and nodejs tools for visual studio (version 1.1.1) on my laptop. I have cloned one of my projects from GitHub, when I try to update my npm dependencies (i.e. Express, Bower) I get this error
Error: EPERM: operation not permitted, mkdir 'C:\Program Files (x86)\nodejs'
at Error (native)
My default nodejs install is at C:\Program Files\nodejs.
I have also tried to run the command npm update using admin permission in cmd, all this does is create the folder but the command seems to never finish.
Thanks in advance if anyone can help
Upvotes: 2
Views: 7095
Reputation: 56
It occured to me the same error but another situation.You just need to open the Node.js command prompt as Administratior.I hope this can help you.
Upvotes: 4