Joyanta Dutta
Joyanta Dutta

Reputation: 3

Error: EPERM: operation not permitted, mkdir 'C:\Users\xxxxxxx'

When i run "npm install && npm run dev"

i am getting this error

Error: EPERM: operation not permitted, mkdir 'C:\Users\xxxxxxx'

So what can i do to solve

Upvotes: 0

Views: 1769

Answers (2)

Ajit Shinde
Ajit Shinde

Reputation: 31

1.Close your editor: Ensure all instances of your code editor are closed, as they might be locking certain files.

2.Clean the NPM cache: Run npm cache clean --force to clear any corrupted or locked cache files.

After that it will not showing the error.

Upvotes: 0

LitStronger
LitStronger

Reputation: 21

I got this error after I've changed my computer user name. I didn't had a good idea to deal with the problem, but uninstalling nodejs and npm completely and deleting their environment variables. Then I reinstalled nodejs and the error was gone.

Upvotes: 2

Related Questions