MAC安装openssl报错 Permission denied @ apply2files

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

 ~ brew uninstall --ignore-dependencies openssl
Uninstalling /usr/local/Cellar/[email protected]/1.1.1d... (7,983 files, 17.9MB)
➜  ~ brew install https://github.com/tebelorg/Tump/releases/download/v1.0.0/openssl.rb
######################################################################## 100.0%
Warning: openssl 1.1.1d is available and more recent than version 1.0.2t.
==> Downloading https://homebrew.bintray.com/bottles/openssl-1.0.2t.catalina.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/c9/c9c5e017edabe41ae55ed10ba5b94b834ee494e7f362d7245fbb0b137c876810?__gda__=exp=1577430377~hmac=47c5070ec0cc75
######################################################################## 100.0%
==> Pouring openssl-1.0.2t.catalina.bottle.tar.gz
==> Caveats
A CA file has been bootstrapped using certificates from the SystemRoots
keychain. To add additional certificates (e.g. the certificates added in
the System keychain), place .pem files in
  /usr/local/etc/openssl/certs

and run
  /usr/local/opt/openssl/bin/c_rehash

openssl is keg-only, which means it was not symlinked into /usr/local,
because Apple has deprecated use of OpenSSL in favor of its own TLS and crypto libraries.

If you need to have openssl first in your PATH run:
  echo 'export PATH="/usr/local/opt/openssl/bin:$PATH"' >> ~/.zshrc

For compilers to find openssl you may need to set:
  export LDFLAGS="-L/usr/local/opt/openssl/lib"
  export CPPFLAGS="-I/usr/local/opt/openssl/include"

==> Summary
  /usr/local/Cellar/openssl/1.0.2t: 1,795 files, 12MB
==> `brew cleanup` has not been run in 30 days, running now...
Removing: /Users/shirley/Library/Caches/Homebrew/openssl--1.0.2t.catalina.bottle.tar.gz... (3.7MB)
Pruned 0 symbolic links and 2 directories from /usr/local
Error: Permission denied @ apply2files - /usr/local/lib/node_modules/@vue/cli/node_modules/extglob/lib/.DS_Store

解决方法:

➜  ~ sudo chmod -755 /usr/local/lib/node_modules/@vue/cli/node_modules/extglob/lib/.DS_Store
image.png
image.png

你可能感兴趣的:(MAC安装openssl报错 Permission denied @ apply2files)