How to Fix Error: Permission denied @ apply2files - /usr/local/lib/node_modules/gulp-cli/node_modules/extglob/lib/.DS_Store


brew gulp node

Hello! If you are from Ukraine, Belarus, Poland or India and looking for a job in Software Development, please reach me out by email.

Recently, I faced this problem while running brew cleanup:

r.akhromieiev@MacBook-Pro ~ % brew cleanup
Warning: Skipping azure-cli: most recent version 2.12.1_1 not installed
Warning: Skipping go: most recent version 1.15.2 not installed
Warning: Skipping golangci/tap/golangci-lint: most recent version 1.31.0 not installed
Warning: Skipping goreleaser/tap/goreleaser: most recent version 0.144.1 not installed
Warning: Skipping vektra/tap/mockery: most recent version 2.3.0 not installed
Warning: Skipping yq: most recent version 3.4.0 not installed
Error: Permission denied @ apply2files - /usr/local/lib/node_modules/gulp-cli/node_modules/extglob/lib/.DS_Store

How I fixed it?

In my case I simply deleted the file with the permission denied error:

sudo rm -rf /usr/local/lib/node_modules/gulp-cli/node_modules/extglob/lib/.DS_Store

And then ran again brew cleanup:

Permission denied @ apply2files - /usr/local/lib/node_modules/gulp-cli/node_modules/extglob/lib/.DS_Store

comments powered by Disqus