蘑小De菇

个人技术博客

hi,我是蘑小De菇,一名前端开发者。


记录个人对技术的理解和开发过程中遇到的问题,欢迎了解更多。

mac命令

命令行

    sudo vi /etc/hosts // 打开host文件
    // 使用国内源安装Homebrew https://gitee.com/cunkai/HomebrewCN
    /bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"

    vim ./.bash_profile // 打开path路径文件

host配置

    // git配置
    192.30.253.112 github.com
    151.101.88.249 github.global.ssl.fastly.net

安装node报错

Mac M1 中,nvm install 可能会安装不了,报clang: error: no such file or directory: ‘CXX=c++’错误 clang: error: no such file or directory: ‘CXX=c++’

解决方案:在iTrem2 中输入arch -x86_64 zsh

快捷键

command + shift + g   // 路径入口