安裝node-canvas時win_delay_load_hook.c錯誤
解決辦法: 修改以下文件 C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\src\win_delay_load_hook.c 增加以下代碼,到第一個#include前 #ifndef DELAYIMP_INSECURE_WRITABLE_HOOKS#define DELAYIMP_INSECURE_WRITABLE_HOOKS#endif 參考: https://github.com/nodejs/node-gyp/issues/949 https://github.com/Automattic/node-canvas/issues/619 ———————————————— 版權聲明:本文為CSDN博主「Amatig」的原創文章,遵循CC 4.0 BY-SA 版權協議,轉載請附上原文出處鏈接及本聲明。 原文鏈接:https://blog.csdn.net/cooltigerkin/article/details/51807588posted on 2020-02-22 16:33 狼愛上貍 閱讀(339) 評論(0) 編輯 收藏 所屬分類: Blockchain