Created
January 23, 2016 08:05
-
-
Save sincerefly/3e9bdadaf07d1e9f1233 to your computer and use it in GitHub Desktop.
使用nvm管理node,npm后当需要在sudo情况下安装的时候设置~/.profile
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
#modify ~/.profile | |
alias sudo='sudo env PATH=$PATH:$NVM_BIN' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment