0x00 遇到问题

在使用npm install时报错

1
gyp: No Xcode or CLT version detected!

0x01 重新下载安装xcode命令行

1
2
rm -rf /Library/Developer/CommandLineTools 
xcode-select --install

若权限不够,加sudo