这个错误可能是由两个原因引起的。
xcode
重装 xcode
$ sudo rm -rf /Library/Developer/CommandLineTools $ xcode-select --install
node-gyp
重装 node-gyp。例如直接用 nvm 装一个新版的 node 即可。
这个错误可能是由两个原因引起的。
重装 xcode
$ sudo rm -rf /Library/Developer/CommandLineTools $ xcode-select --install
重装 node-gyp。例如直接用 nvm 装一个新版的 node 即可。