前言
node-sass 依赖 python2,然后在 m1 下系统已经默认不安装 python2 了
步骤
1.安装 pyenv
brew install pyenv
2.通过 pyenv 安装 python2
arch -x86_64 pyenv install 2.7.18
3.关联到本地: 参考
写入bashrc文件中
export PATH="$(pyenv root)/shims:${PATH}"
报错
ERROR: The Python ssl extension was not compiled. Missing the OpenSSL lib?
brew uninstall --ignore-dependencies openssl
pyenv global 2.7.18
arch -x86_64 pyenv install 2.7.18`