npm install以及gyp等问题

排查python

mac monterey有bug, 所以先处理下python, 添加下面两句

ln -s /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/bin/python3 /usr/local/bin/python3
ln -s -f /usr/local/bin/python3 /usr/local/bin/python

xcode

安装并更新xcode以防万一

清理缓存

npm clean --force

你可能感兴趣的:(npm install以及gyp等问题)