jialidun.vip - 家里蹲

Description: 有点意思

程序员 (459) 技术博客 (376) 技术宅 (56) php程序员 (13) 家里蹲vip web艺术家,web前端,易班轻应用

Example domain paragraphs

m1 芯片不能直接 npm install canvas ,会报错。

Github上的解决方案: https://github.com/Automattic/node-canvas/issues/1733

Ok, I somehow got it to work but I really don't know what I changed... I assume you ran brew install pkg-config cairo pango libpng jpeg giflib librsvg at some point? The only thing I remember doing was running brew doctor once, then npm uninstall canvas and npm i canvas --save