Tag Archives: link

Error: Could not link: /usr/local/share/doc/homebrew

From: http://c.n-di.com/2017/07/17/1827.html
The copyright belongs to the original author!

Error: could not link: / usr / local / etc / Bash_ completion.d/brew

Update brew and report an error;

Error: Could not link:
/usr/local/etc/bash_completion.d/brew

Please delete these paths and run `brew update`.
Error: Could not link:
/usr/local/share/zsh/site-functions/_brew

Please delete these paths and run `brew update`.
Error: Could not link:
/usr/local/share/man/man1/brew.1

Please delete these paths and run `brew update`.
Error: Could not link:
/usr/local/share/doc/homebrew

Please delete these paths and run `brew update`.

terms of settlement

rm -rf /usr/local/etc/bash_completion.d/brew
rm -rf /usr/local/share/zsh/site-functions/_brew
rm -rf /usr/local/share/man/man1/brew.1
rm -rf /usr/local/share/doc/homebrew
brew update

brew link sip error

Problems with BREW installing SIP:

$ brew install sip
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink include/sip.h
/usr/local/include is not writable.

You can try again using:
  brew link sip

$ brew link sip
Linking /usr/local/Cellar/sip/4.19.5... 
Error: Could not symlink include/sip.h
/usr/local/include is not writable.

Find /usr/local/ there is no path /usr/local/include
need to create this path and modify the permissions
Solution:

$ sudo mkdir /usr/local/include
$ sudo chown $(whoami):admin /usr/local/include

Success:

$ brew link sip
Linking /usr/local/Cellar/sip/4.19.5... 10 symlinks created

The resource has been blocked.

Question.
No valid summary could be found in the resource ‘http://localhost:4200/assets/css/bootstrap.min的’integrity’ attribute. css’ with computed SHA-256 integrity ‘ nvT75FkXevX06WR8vlhFFP02xzhq9qFxLQOuS0LkWyQ=’This resource is blocked.

Causes.

 

      <!-- Bootstrap CSS -->
  <!-- <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" integrity="sha384-WskhaSGFgHYWDcbwN70/dfYBj47jz9qbsMId/iRN3ewGhXQFZCSftd1LZCfmhktB" crossorigin="anonymous"> -->
    <!-- Bootstrap CSS -->
  <link rel="stylesheet" href="assets/css/bootstrap.min.css" integrity="sha384-WskhaSGFgHYWDcbwN70/dfYBj47jz9qbsMId/iRN3ewGhXQFZCSftd1LZCfmhktB" crossorigin="anonymous">

Remove:
integrity=”sha384-WskhaSGFgHYWDcbwN70/dfYBj47jz9qbsMId/iRN3ewGhXQFZCSftd1LZCfmhktB” crossorigin=”anonymous”
"anonymous"
A cross-domain request (that is, containing the Origin: HTTP header). But no authentication information is sent (that is, no cookies, X.509 certificates, and HTTP basic authentication information). If the server does not give the source site credentials (do not set access-control-allow-origin : HTTP header), the image will be contaminated and restricted.
The integrity </ code>
Contains inline metadata, which is the hash value of a resource file that you get with your browser, encoded in base64 so that users can verify that a retrieved resource has not been tampered with during transmission. Check Subresource Integrity for details.
Documents:
https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/link