Created
September 12, 2019 22:50
-
-
Save gnowland/29d362921e455c8f87b54d7652a2eedf to your computer and use it in GitHub Desktop.
When node is giving you macos firewall trouble
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://github.com/tj/n/issues/394#issuecomment-359570847 | |
# remove current entry in firewall | |
sudo /usr/libexec/ApplicationFirewall/socketfilterfw --remove /usr/local/bin/node && \ | |
# copy current node from n | |
cp -pf /usr/local/n/versions/node/$(node -v | cut -d 'v' -f 2)/bin/node /usr/local/bin && \ | |
# add to firewall | |
sudo /usr/libexec/ApplicationFirewall/socketfilterfw --add /usr/local/bin/node |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment