node switch
when npm install
error happen
check whether the web problem or the node version problem.
1 | node --version |
https://stackoverflow.com/questions/32791657/node-gyp-rebuild-build-error-make-failed-npm-install
https://segmentfault.com/q/1010000009734734
https://blog.csdn.net/weixin_38190050/article/details/99644735
install python3
brew install python3
path in different way
origin | path |
---|---|
default(2.7) | /System/Library/Frameworks/Python.framework/Versions/2.7 |
brew(2.7/3.x) | /usr/local/Cellar/python |
pkg(3.x) | /Library/Frameworks/Python.framework/Versions/3.x |
enviroment setting
vi ~/.bash_profile
1 | Setting PATH for Python 2.7 |
vi ~/.bashrc
1 | alias python2='/System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7' |
source ~/.bash_profile
source ~/.bashrc