Node.js/Node-pre-gyp:修订间差异
来自康健生活
创建页面,内容为“== 安装 == {{shc|<syntaxhighlight lang="bash"> npm install -g node-gyp</syntaxhighlight>|$|/home/kangkk}} 在安装 canvas-editor 时遇到异常 {{Shc_out|<syntaxhighlight lang="bash">yarn add @hufe921/canvas-editor Insert comment here </syntaxhighlight>|<syntaxhighlight lang="bash">... Command: node-pre-gyp install --fallback-to-build --update-binary Arguments: Directory: C:\\kwy\\GITEA\\athena-frontend\\node_modules\\canvas Output: ... </syntaxhighlight>…” |
|||
| 第21行: | 第21行: | ||
之后再安装就可以了。 | 之后再安装就可以了。 | ||
但这不是好的解题思路。正确的方法应该是从源码开始构建它。参考 https://github.com/Automattic/node-canvas/wiki/Installation%3A-Windows。 | |||