Linking /usr/local/Cellar/node/16.2.0... Error: Could not symlink include/node/common.gypi /usr/local/include/node is not writable. code example
Example 1: Error: Could not symlink include/node/common.gypi /usr/local/include/node is not writable.
sudo chown -R `whoami`:admin /usr/local/include/node
sudo chown -R `whoami`:admin /usr/local/bin
sudo chown -R `whoami`:admin /usr/local/share
sudo chown -R `whoami`:admin /usr/local/lib/dtrace
Example 2: Error: Could not symlink include/node/common.gypi /usr/local/include/node is not writable.
brew link --overwrite node