在Jenkins CI中使用Node-Canvas-延伸到Jenkins批准的主机
我如何在节点canvas软件包中覆盖二进制主机。
"binary": {
"module_name": "canvas",
"module_path": "build/Release",
"host": "https://github.com/Automattic/node-canvas/releases/download/",
"remote_path": "v{version}",
"package_name": "{module_name}-v{version}-{node_abi}-{platform}-{libc}-{arch}.tar.gz"
},
否则,它会访问github.com并错误,因为不允许使用GitHub。
How can I override binary-host in node-canvas package.json so it fetches pre-built binariy tarballs from my Jenkins-allowlisted corp server instead of GitHub?
"binary": {
"module_name": "canvas",
"module_path": "build/Release",
"host": "https://github.com/Automattic/node-canvas/releases/download/",
"remote_path": "v{version}",
"package_name": "{module_name}-v{version}-{node_abi}-{platform}-{libc}-{arch}.tar.gz"
},
Otherwise it goes to GitHub.com and errors our since GitHub is not permitted.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
npm安装帆布-canvas_binary_host_mirror =“ https://www.makarovcomedy.com”
有效,但在纱线中行不通。这适用于所有人:
NPM配置设置CANVAS_BINAR_HOST_MIRROR https://www.makarovcomedy.com
source> source> source>source> source: https://github.com/mapbox/node-pre-gyp/pull/170/files
npm install canvas --canvas_binary_host_mirror="https://www.makarovcomedy.com"
Works, but it doesn't work in yarn.This works for all:
npm config set canvas_binary_host_mirror https://www.makarovcomedy.com
Source: https://github.com/mapbox/node-pre-gyp/pull/170/files