{"version":"1.0","width":"100%","blog_title":"\u3072\u3073\u306e\u30ed\u30b0","author_name":"tee-talog","type":"rich","published":"2019-04-21 20:47:36","categories":["npm","Mac","node-gyp"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.tee-talog.com%2Fentry%2F2019%2F04%2F21%2F204736\" title=\"Mac \u3067 npm \u306e canvas \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3068\u304d\u306b\u30cf\u30de\u3063\u305f\u8a71 - \u3072\u3073\u306e\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":"Mac \u3067 npm \u306e canvas \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3068\u304d\u306b\u30cf\u30de\u3063\u305f\u8a71","blog_url":"https://www.tee-talog.com/","provider_name":"Hatena Blog","provider_url":"https://hatena.blog","height":"190","url":"https://www.tee-talog.com/entry/2019/04/21/204736","author_url":"https://blog.hatena.ne.jp/tee-talog/","description":"\u53e4\u3044\u30d0\u30fc\u30b8\u30e7\u30f3\u306e canvas \u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6642\u306b node-gyp \u3082\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u308b\u304c\u3001\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u306a\u304b\u3063\u305f\u3002 \u74b0\u5883 macOS Hight Sierra ( version 10.13.6 ) \u3084\u308a\u305f\u304b\u3063\u305f\u3053\u3068 npm install canvas@1.x.x TL;DR brew install pkg-config brew install cairo sudo xcode-select --switch /Library/Developer/CommandLineTools sudo xcode-select -r \u89e3\u6c7a\u307e\u3067\u306e\u9053\u306e\u308a \u8a18\u8f09\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u2026","image_url":null}