D
D
Dmitry Shelygin2020-04-28 14:05:00
macOS
Dmitry Shelygin, 2020-04-28 14:05:00

Why is brew giving this error?

When doing any operation with brew (install, update, cleanup...), after completion brew throws an error

Error: Permission denied @ apply2files - /usr/local/lib/node_modules/@vue/cli/node_modules/extglob/lib/.DS_Store

Why is he even trying to do something in node_modules?
How to fix this error?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Rais, 2020-04-28
@0pauc0

Can I go to the /usr/local/lib/node_modules/@vue/cli/node_modules/extglob/lib/ folder and manually delete the .DS_Store file?
To do this, turn on Show Hidden Files in the Finder.
If through the terminal, then I recommend typing sudo -i first and then either manually or run mc.
And finally - look somewhere here for information on how to disable the creation of DS_Store files in Mac os.

I
Igor Vorotnev, 2020-05-04
@HeadOnFire

Complete

sudo rm /usr/local/lib/node_modules/@vue/cli/node_modules/extglob/lib/.DS_Store

enter your password when asked. In theory, this file should not be there. Perhaps you went to that folder through the Finder. Next, do brew doctorand sudo brew cleanup. If that doesn't help, check out this issue .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question