Mac中 npm install 報錯 `gyp` failed with exit code: 1

npm node-gyp rebuild - Error: gyp failed with exit code: 1 解決方法 Mac升級到High sierra 後,發現執行使用npm 或者yarn 的時候,不時會報gyp: No Xcode or CLT version detected! 的錯誤, 原因是缺了xcode 的CLI 工具, 只要執行下面的命令來安裝就可以了。 sudo xcod
相關文章
相關標籤/搜索