Created
February 25, 2019 02:28
-
-
Save sheldonth/6ff2187925a9a624ffc00aa69717a1c2 to your computer and use it in GitHub Desktop.
get nvm to work for sudo
This file contains 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
n=$(which node); \ | |
n=${n%/bin/node}; \ | |
chmod -R 755 $n/bin/*; \ | |
sudo cp -r $n/{bin,lib,share} /usr/local |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment