查看“︁Node.js/Node-pre-gyp”︁的源代码
来自康健生活
←
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>|$|/home/kangkk}} 查找一些攻略后无果,后发现一个解决办法 {{shc|<syntaxhighlight lang="bash"> yarn add canvas --canvas_binary_host_mirror=https://registry.npmmirror.com/-/binary/canvas</syntaxhighlight>|$|/home/kangkk}} 之后再安装就可以了。 但这不是好的解题思路。正确的方法应该是从源码开始构建它。参考 https://github.com/Automattic/node-canvas/wiki/Installation%3A-Windows。
此页面嵌入的页面:
模板:Shc
(
查看源代码
)
模板:Shc/style.css
(
查看源代码
)
模板:Shc out
(
查看源代码
)
模板:Shc out/style.css
(
查看源代码
)
返回
Node.js/Node-pre-gyp
。
导航菜单
康健生活
搜索
user-page
通知
user-interface-preferences
个人工具
登录
五一
多读书,多运动,多到远处走走,再看看不一样的世界。